home *** CD-ROM | disk | FTP | other *** search
/ 3D Game Programming All in One / 3D Game Programming All in One Disc.iso / 3D2E / RESOURCES / KOOB / creator / editor / EditorGui.gui < prev    next >
Text File  |  2005-11-23  |  137KB  |  3,553 lines

  1. //--- OBJECT WRITE BEGIN ---
  2. new GuiControl(EditorGui) {
  3.    profile = "GuiDefaultProfile";
  4.    horizSizing = "right";
  5.    vertSizing = "bottom";
  6.    position = "0 0";
  7.    extent = "640 480";
  8.    minExtent = "8 8";
  9.    visible = "1";
  10.    helpTag = "0";
  11.       currentEditor = "World Editor Inspector";
  12.       saveAs = "0";
  13.  
  14.    new EditManager() {
  15.       profile = "GuiDefaultProfile";
  16.       horizSizing = "right";
  17.       vertSizing = "bottom";
  18.       position = "0 0";
  19.       extent = "64 64";
  20.       minExtent = "8 8";
  21.       visible = "1";
  22.       helpTag = "0";
  23.    };
  24.    new WorldEditor(EWorldEditor) {
  25.       profile = "MissionEditorProfile";
  26.       horizSizing = "width";
  27.       vertSizing = "height";
  28.       position = "0 22";
  29.       extent = "640 458";
  30.       minExtent = "8 8";
  31.       visible = "0";
  32.       helpTag = "0";
  33.       renderMissionArea = "1";
  34.       missionAreaFillColor = "255 0 0 20";
  35.       missionAreaFrameColor = "255 0 0 128";
  36.       consoleFrameColor = "255 0 0 255";
  37.       consoleFillColor = "0 0 0 0";
  38.       consoleSphereLevel = "1";
  39.       consoleCircleSegments = "32";
  40.       consoleLineWidth = "1";
  41.       isDirty = "0";
  42.       planarMovement = "1";
  43.       undoLimit = "40";
  44.       dropType = "screenCenter";
  45.       projectDistance = "2000";
  46.       boundingBoxCollision = "1";
  47.       renderPlane = "1";
  48.       renderPlaneHashes = "1";
  49.       gridColor = "255 255 255 20";
  50.       planeDim = "500";
  51.       gridSize = "10 10 10";
  52.       renderPopupBackground = "1";
  53.       popupBackgroundColor = "100 100 100 255";
  54.       popupTextColor = "255 255 0 255";
  55.       objectTextColor = "255 255 255 255";
  56.       objectsUseBoxCenter = "1";
  57.       axisGizmoMaxScreenLen = "200";
  58.       axisGizmoActive = "1";
  59.       mouseMoveScale = "0.2";
  60.       mouseRotateScale = "0.01";
  61.       mouseScaleScale = "0.01";
  62.       minScaleFactor = "0.1";
  63.       maxScaleFactor = "4000";
  64.       objSelectColor = "255 0 0 255";
  65.       objMouseOverSelectColor = "0 0 255 255";
  66.       objMouseOverColor = "0 255 0 255";
  67.       showMousePopupInfo = "1";
  68.       dragRectColor = "255 255 0 255";
  69.       renderObjText = "1";
  70.       renderObjHandle = "1";
  71.       objTextFormat = "$id$: $name$";
  72.       faceSelectColor = "0 0 100 100";
  73.       renderSelectionBox = "1";
  74.       selectionBoxColor = "255 255 0 255";
  75.       selectionLocked = "0";
  76.       snapToGrid = "0";
  77.       snapRotations = "0";
  78.       rotationSnap = "15";
  79.       toggleIgnoreList = "0";
  80.       renderNav = "0";
  81.       selectHandle = "./SelectHandle.png";
  82.       defaultHandle = "./DefaultHandle.png";
  83.       lockedHandle = "./LockedHandle.png";
  84.          numEditModes = "3";
  85.          editMode2 = "scale";
  86.          editMode0 = "move";
  87.          editMode1 = "rotate";
  88.  
  89.       new GuiControl(EWMissionArea) {
  90.          profile = "EditorScrollProfile";
  91.          horizSizing = "left";
  92.          vertSizing = "bottom";
  93.          position = "380 0";
  94.          extent = "260 280";
  95.          minExtent = "8 8";
  96.          visible = "1";
  97.          helpTag = "0";
  98.  
  99.          new GuiControl(AE_MainBar) {
  100.             profile = "GuiDefaultProfile";
  101.             horizSizing = "right";
  102.             vertSizing = "bottom";
  103.             position = "0 0";
  104.             extent = "260 22";
  105.             minExtent = "8 8";
  106.             visible = "1";
  107.             helpTag = "0";
  108.  
  109.             new GuiCheckBoxCtrl() {
  110.                profile = "GuiCheckBoxProfile";
  111.                horizSizing = "right";
  112.                vertSizing = "bottom";
  113.                position = "4 3";
  114.                extent = "60 18";
  115.                minExtent = "8 8";
  116.                visible = "1";
  117.                command = "AreaEditor.enableEditing = $ThisControl.getValue();";
  118.                helpTag = "0";
  119.                text = "Edit Area";
  120.                groupNum = "-1";
  121.                buttonType = "ToggleButton";
  122.             };
  123.             new GuiButtonCtrl() {
  124.                profile = "GuiButtonProfile";
  125.                horizSizing = "right";
  126.                vertSizing = "bottom";
  127.                position = "65 3";
  128.                extent = "60 18";
  129.                minExtent = "8 8";
  130.                visible = "1";
  131.                command = "AreaEditor.centerWorld();";
  132.                helpTag = "0";
  133.                text = "Center";
  134.                groupNum = "-1";
  135.                buttonType = "PushButton";
  136.             };
  137.             new GuiButtonCtrl() {
  138.                profile = "GuiButtonProfile";
  139.                horizSizing = "right";
  140.                vertSizing = "bottom";
  141.                position = "126 3";
  142.                extent = "60 18";
  143.                minExtent = "8 8";
  144.                visible = "1";
  145.                command = "AreaEditor.enableMirroring = true;AE_MainBar.setVisible(0);AE_MirrorBar.setVisible(1);";
  146.                helpTag = "0";
  147.                text = "Mirror";
  148.                groupNum = "-1";
  149.                buttonType = "PushButton";
  150.             };
  151.          };
  152.          new GuiControl(AE_MirrorBar) {
  153.             profile = "GuiDefaultProfile";
  154.             horizSizing = "right";
  155.             vertSizing = "bottom";
  156.             position = "0 0";
  157.             extent = "260 22";
  158.             minExtent = "8 8";
  159.             visible = "0";
  160.             helpTag = "0";
  161.  
  162.             new GuiButtonCtrl() {
  163.                profile = "GuiButtonProfile";
  164.                horizSizing = "right";
  165.                vertSizing = "bottom";
  166.                position = "6 3";
  167.                extent = "30 18";
  168.                minExtent = "8 8";
  169.                visible = "1";
  170.                command = "if(AreaEditor.mirrorIndex == 0) AreaEditor.mirrorIndex = 7; else AreaEditor.mirrorIndex--;";
  171.                helpTag = "0";
  172.                text = "<--";
  173.                groupNum = "-1";
  174.                buttonType = "PushButton";
  175.             };
  176.             new GuiButtonCtrl() {
  177.                profile = "GuiButtonProfile";
  178.                horizSizing = "right";
  179.                vertSizing = "bottom";
  180.                position = "39 3";
  181.                extent = "30 18";
  182.                minExtent = "8 8";
  183.                visible = "1";
  184.                command = "if(AreaEditor.mirrorIndex == 7) AreaEditor.mirrorIndex = 0; else AreaEditor.mirrorIndex++;";
  185.                helpTag = "0";
  186.                text = "-->";
  187.                groupNum = "-1";
  188.                buttonType = "PushButton";
  189.             };
  190.             new GuiButtonCtrl() {
  191.                profile = "GuiButtonProfile";
  192.                horizSizing = "right";
  193.                vertSizing = "bottom";
  194.                position = "80 3";
  195.                extent = "60 18";
  196.                minExtent = "8 8";
  197.                visible = "1";
  198.                command = "AreaEditor.enableMirroring = false;ETerrainEditor.mirrorTerrain(AreaEditor.mirrorIndex);AreaEditor.updateTerrain();AE_MirrorBar.setVisible(0);AE_MainBar.setVisible(1);";
  199.                helpTag = "0";
  200.                text = "Apply";
  201.                tooltipprofile = "GuiToolTipProfile";
  202.                tooltip = "Don't forget to hit Apply after making changes!";
  203.                groupNum = "-1";
  204.                buttonType = "PushButton";
  205.             };
  206.             new GuiButtonCtrl() {
  207.                profile = "GuiButtonProfile";
  208.                horizSizing = "right";
  209.                vertSizing = "bottom";
  210.                position = "143 3";
  211.                extent = "60 18";
  212.                minExtent = "8 8";
  213.                visible = "1";
  214.                command = "AreaEditor.enableMirroring = false;AE_MirrorBar.setVisible(0);AE_MainBar.setVisible(1);";
  215.                helpTag = "0";
  216.                text = "Cancel";
  217.                groupNum = "-1";
  218.                buttonType = "PushButton";
  219.             };
  220.          };
  221.          new MissionAreaEditor(AreaEditor) {
  222.             profile = "GuiDefaultProfile";
  223.             horizSizing = "right";
  224.             vertSizing = "bottom";
  225.             position = "2 22";
  226.             extent = "256 256";
  227.             minExtent = "8 8";
  228.             visible = "1";
  229.             helpTag = "0";
  230.             wrap = "0";
  231.             squareBitmap = "1";
  232.             enableEditing = "0";
  233.             renderCamera = "1";
  234.             handleFrameColor = "255 255 255 255";
  235.             handleFillColor = "0 0 0 255";
  236.             defaultObjectColor = "0 255 0 100";
  237.             waterObjectColor = "0 0 255 100";
  238.             missionBoundsColor = "255 0 0 255";
  239.             cameraColor = "255 0 0 255";
  240.             enableMirroring = "0";
  241.             mirrorIndex = "0";
  242.             mirrorLineColor = "255 0 255 255";
  243.             mirrorArrowColor = "255 0 255 128";
  244.          };
  245.          new GuiTextCtrl(AreaEditingText) {
  246.             profile = "GuiTextProfile";
  247.             horizSizing = "right";
  248.             vertSizing = "top";
  249.             position = "7 258";
  250.             extent = "151 18";
  251.             minExtent = "8 8";
  252.             visible = "1";
  253.             helpTag = "0";
  254.             maxLength = "255";
  255.          };
  256.       };
  257.       new GuiFrameSetCtrl(EWFrame) {
  258.          profile = "GuiDefaultProfile";
  259.          horizSizing = "left";
  260.          vertSizing = "height";
  261.          position = "370 0";
  262.          extent = "270 458";
  263.          minExtent = "8 8";
  264.          visible = "0";
  265.          helpTag = "0";
  266.          columns = "0";
  267.          rows = "0 321";
  268.          borderWidth = "4";
  269.          borderColor = "206 206 206 206";
  270.          borderEnable = "dynamic";
  271.          borderMovable = "dynamic";
  272.          autoBalance = "0";
  273.          fudgeFactor = "0";
  274.  
  275.          new GuiControl(EWTreePane) {
  276.             profile = "GuiDefaultProfile";
  277.             horizSizing = "width";
  278.             vertSizing = "height";
  279.             position = "0 0";
  280.             extent = "270 317";
  281.             minExtent = "8 8";
  282.             visible = "1";
  283.             helpTag = "0";
  284.  
  285.             new GuiScrollCtrl() {
  286.                profile = "EditorScrollProfile";
  287.                horizSizing = "width";
  288.                vertSizing = "height";
  289.                position = "0 0";
  290.                extent = "270 317";
  291.                minExtent = "8 8";
  292.                visible = "1";
  293.                helpTag = "0";
  294.                willFirstRespond = "1";
  295.                hScrollBar = "alwaysOff";
  296.                vScrollBar = "alwaysOn";
  297.                constantThumbHeight = "0";
  298.                childMargin = "0 0";
  299.  
  300.                new GuiTreeViewCtrl(EditorTree) {
  301.                   profile = "GuiTreeViewProfile";
  302.                   horizSizing = "width";
  303.                   vertSizing = "bottom";
  304.                   position = "2 2";
  305.                   extent = "640 11";
  306.                   minExtent = "8 8";
  307.                   visible = "1";
  308.                   helpTag  = "0";
  309.                };
  310.             };
  311.          };
  312.          new GuiControl(EWCreatorInspectorPane) {
  313.             profile = "GuiDefaultProfile";
  314.             horizSizing = "width";
  315.             vertSizing = "height";
  316.             position = "0 321";
  317.             extent = "270 137";
  318.             minExtent = "8 8";
  319.             visible = "1";
  320.             helpTag = "0";
  321.  
  322.             new GuiScrollCtrl(EWCreatorPane) {
  323.                profile = "EditorScrollProfile";
  324.                horizSizing = "width";
  325.                vertSizing = "height";
  326.                position = "0 0";
  327.                extent = "270 137";
  328.                minExtent = "8 8";
  329.                visible = "0";
  330.                helpTag = "0";
  331.                willFirstRespond = "1";
  332.                hScrollBar = "dynamic";
  333.                vScrollBar = "alwaysOn";
  334.                constantThumbHeight = "0";
  335.                childMargin = "0 0";
  336.  
  337.                new GuiTreeViewCtrl(Creator) {
  338.                   profile = "GuiTreeViewProfile";
  339.                   horizSizing = "right";
  340.                   vertSizing = "bottom";
  341.                   position = "2 2";
  342.                   extent = "93 44";
  343.                   minExtent = "8 8";
  344.                   visible = "1";
  345.                   helpTag = "0";
  346.                };
  347.             };
  348.             new GuiControl(EWInspectorPane) {
  349.                profile = "GuiDefaultProfile";
  350.                horizSizing = "width";
  351.                vertSizing = "height";
  352.                position = "0 0";
  353.                extent = "270 137";
  354.                minExtent = "8 8";
  355.                visible = "1";
  356.                helpTag = "0";
  357.  
  358.                new GuiControl() {
  359.                   profile = "EditorScrollProfile";
  360.                   horizSizing = "width";
  361.                   vertSizing = "bottom";
  362.                   position = "0 0";
  363.                   extent = "270 24";
  364.                   minExtent = "8 8";
  365.                   visible = "1";
  366.                   helpTag = "0";
  367.  
  368.                   new GuiButtonCtrl() {
  369.                      profile = "GuiButtonProfile";
  370.                      horizSizing = "right";
  371.                      vertSizing = "bottom";
  372.                      position = "2 2";
  373.                      extent = "40 20";
  374.                      minExtent = "8 8";
  375.                      visible = "1";
  376.                      command = "EWorldEditor.isDirty = true;inspector.setName(InspectorNameEdit.getValue());InspectorNameEdit.makeFirstResponder(true);";
  377.                      helpTag = "0";
  378.                      text = "Apply";
  379.                      tooltipprofile = "GuiToolTipProfile";
  380.                      tooltip = "Don't forget to hit Apply after making changes!";
  381.                      groupNum = "-1";
  382.                      buttonType = "PushButton";
  383.                   };
  384.              new GuiTextCtrl() {
  385.                profile = "GuiInspectorFieldProfile";
  386.                  position = "52 4";
  387.                  extent = "42 16";
  388.                  text = "Name:";
  389.              };
  390.  
  391.              new GuiTextEditCtrl (InspectorNameEdit) {
  392.                profile = "GuiInspectorBackgroundProfile";
  393.                  position = "97 4";
  394.                  extent = "164 18";
  395.                  text = "";
  396.                  horizSizing = "width";
  397.                  AltCommand = "EWorldEditor.isDirty = true;inspector.setName(InspectorNameEdit.getValue());";
  398.                  vertSizing = "bottom";
  399.                autoSizeWidth = false;
  400.                autoSizeHeight = true;
  401.                textOffset = "0 2";
  402.              };
  403.  
  404.                };
  405.                new GuiScrollCtrl() {
  406.                   profile = "EditorScrollProfile";
  407.                   horizSizing = "width";
  408.                   vertSizing = "height";
  409.                   position = "0 24";
  410.                   extent = "270 113";
  411.                   minExtent = "8 8";
  412.                   visible = "1";
  413.                   helpTag = "0";
  414.                   willFirstRespond = "1";
  415.                   hScrollBar = "dynamic";
  416.                   vScrollBar = "alwaysOn";
  417.                   constantThumbHeight = "0";
  418.                   childMargin = "0 0";
  419.  
  420.                   new GuiInspector(Inspector) {
  421.                      profile = "GuiDefaultProfile";
  422.                      horizSizing = "width";
  423.                      vertSizing = "bottom";
  424.                      position = "2 2";
  425.                      extent = "248 74";
  426.                      minExtent = "8 8";
  427.                      visible = "1";
  428.                      helpTag = "0";
  429.                      editControlOffset = "5";
  430.                      entryHeight = "16";
  431.                      textExtent = "80";
  432.                      entrySpacing = "2";
  433.                      maxMenuExtent = "80";
  434.                   };
  435.                };
  436.             };
  437.          };
  438.       };
  439.    };
  440.    new TerrainEditor(ETerrainEditor) {
  441.       profile = "MissionEditorProfile";
  442.       horizSizing = "width";
  443.       vertSizing = "height";
  444.       position = "0 22";
  445.       extent = "640 458";
  446.       minExtent = "8 8";
  447.       visible = "1";
  448.       helpTag = "0";
  449.       renderMissionArea = "1";
  450.       missionAreaFillColor = "255 0 0 20";
  451.       missionAreaFrameColor = "255 0 0 128";
  452.       consoleFrameColor = "255 0 0 255";
  453.       consoleFillColor = "0 0 0 0";
  454.       consoleSphereLevel = "1";
  455.       consoleCircleSegments = "32";
  456.       consoleLineWidth = "1";
  457.       isDirty = "1";
  458.       renderBorder = "1";
  459.       borderHeight = "10";
  460.       borderFillColor = "0 255 0 20";
  461.       borderFrameColor = "0 255 0 128";
  462.       borderLineMode = "0";
  463.       selectionHidden = "1";
  464.       enableSoftBrushes = "1";
  465.       renderVertexSelection = "1";
  466.       processUsesBrush = "0";
  467.       adjustHeightVal = "10";
  468.       setHeightVal = "100";
  469.       scaleVal = "1";
  470.       smoothFactor = "0.1";
  471.       materialGroup = "0";
  472.       softSelectRadius = "50";
  473.       softSelectFilter = "1.000000 0.833333 0.666667 0.500000 0.333333 0.166667 0.000000";
  474.       softSelectDefaultFilter = "1.000000 0.833333 0.666667 0.500000 0.333333 0.166667 0.000000";
  475.       adjustHeightMouseScale = "0.1";
  476.          currentMode = "paint";
  477.          softSelecting = "1";
  478.          brushSize = "9";
  479.          currentAction = "brushAdjustHeight";
  480.  
  481.       new GuiControl(EHeightField) {
  482.          profile = "GuiModelessDialogProfile";
  483.          horizSizing = "width";
  484.          vertSizing = "height";
  485.          position = "0 0";
  486.          extent = "640 458";
  487.          minExtent = "8 8";
  488.          visible = "1";
  489.          helpTag = "0";
  490.  
  491.          new GuiControl(HeightfieldTabParent) {
  492.             profile = "EditorScrollProfile";
  493.             horizSizing = "left";
  494.             vertSizing = "height";
  495.             position = "370 0";
  496.             extent = "270 458";
  497.             minExtent = "8 8";
  498.             visible = "1";
  499.             helpTag = "0";
  500.                hScrollBar = "alwaysOff";
  501.                vScrollBar = "alwaysOff";
  502.                constantThumbHeight = "1";
  503.                willFirstRespond = "1";
  504.  
  505.             new GuiControl(tab_fBm) {
  506.                profile = "GuiDefaultProfile";
  507.                horizSizing = "right";
  508.                vertSizing = "bottom";
  509.                position = "0 0";
  510.                extent = "261 198";
  511.                minExtent = "8 8";
  512.                visible = "0";
  513.                helpTag = "0";
  514.  
  515.                new GuiTextCtrl() {
  516.                   profile = "GuiTextProfile";
  517.                   horizSizing = "right";
  518.                   vertSizing = "bottom";
  519.                   position = "6 6";
  520.                   extent = "100 18";
  521.                   minExtent = "8 8";
  522.                   visible = "1";
  523.                   helpTag = "0";
  524.                   text = "fBm Fractal Settings:";
  525.                   maxLength = "255";
  526.                };
  527.                new GuiTextCtrl() {
  528.                   profile = "GuiTextProfile";
  529.                   horizSizing = "right";
  530.                   vertSizing = "bottom";
  531.                   position = "86 35";
  532.                   extent = "71 18";
  533.                   minExtent = "8 8";
  534.                   visible = "1";
  535.                   helpTag = "0";
  536.                   text = "Hill Frequency:";
  537.                   maxLength = "255";                  
  538.                   tooltipprofile = "GuiToolTipProfile";
  539.                   tooltip = "Indirectly determines number of hills. Higher values create more hills.";
  540.                };
  541.                new GuiTextEditSliderCtrl(fbm_interval) {
  542.                   profile = "GuiTextEditProfile";
  543.                   horizSizing = "right";
  544.                   vertSizing = "bottom";
  545.                   position = "166 35";
  546.                   extent = "78 18";
  547.                   minExtent = "8 8";
  548.                   visible = "1";
  549.                   helpTag = "0";
  550.                   maxLength = "255";
  551.                   historySize = "0";
  552.                   password = "0";
  553.                   tabComplete = "0";
  554.                   format = "%1.0f";
  555.                   range = "1 24";
  556.                   increment = "1";
  557.                   tooltipprofile = "GuiToolTipProfile";
  558.                   tooltip = "Indirectly determines number of hills. Higher values create more hills.";
  559.                };
  560.                new GuiTextCtrl() {
  561.                   profile = "GuiTextProfile";
  562.                   horizSizing = "right";
  563.                   vertSizing = "bottom";
  564.                   position = "99 60";
  565.                   extent = "58 18";
  566.                   minExtent = "8 8";
  567.                   visible = "1";
  568.                   helpTag = "0";
  569.                   text = "Roughness:";
  570.                   maxLength = "255";                  
  571.                   tooltipprofile = "GuiToolTipProfile";
  572.                   tooltip = "Determines roundness of hills. Lower values = more rounded hills.";
  573.                };
  574.                new GuiButtonCtrl() {
  575.                   profile = "GuiButtonProfile";
  576.                   horizSizing = "right";
  577.                   vertSizing = "bottom";
  578.                   position = "166 136";
  579.                   extent = "77 20";
  580.                   minExtent = "8 8";
  581.                   visible = "1";
  582.                   command = "fBm_seed.setValue(terraFormer.generateSeed());Heightfield::saveTab();Heightfield::preview($selectedOperation);";
  583.                   helpTag = "0";
  584.                   text = "New Seed";
  585.                   groupNum = "-1";
  586.                   buttonType = "PushButton";
  587.                };
  588.                new GuiTextCtrl() {
  589.                   profile = "GuiTextProfile";
  590.                   horizSizing = "right";
  591.                   vertSizing = "bottom";
  592.                   position = "87 110";
  593.                   extent = "70 18";
  594.                   minExtent = "8 8";
  595.                   visible = "1";
  596.                   helpTag = "0";
  597.                   text = "Random Seed:";
  598.                   maxLength = "255";
  599.                   tooltipprofile = "GuiToolTipProfile";
  600.                   tooltip = "Seed value for random number generator.";
  601.                };
  602.                new GuiTextEditCtrl(fBm_seed) {
  603.                   profile = "GuiTextEditProfile";
  604.                   horizSizing = "right";
  605.                   vertSizing = "bottom";
  606.                   position = "166 110";
  607.                   extent = "78 18";
  608.                   minExtent = "8 8";
  609.                   visible = "1";
  610.                   helpTag = "0";
  611.                   text = "0";
  612.                   maxLength = "255";
  613.                   historySize = "5";
  614.                   password = "0";
  615.                   tabComplete = "0";
  616.                   tooltipprofile = "GuiToolTipProfile";
  617.                   tooltip = "Seed value for random number generator.";
  618.                };
  619.                new GuiTextEditSliderCtrl(fbm_rough) {
  620.                   profile = "GuiTextEditProfile";
  621.                   horizSizing = "right";
  622.                   vertSizing = "bottom";
  623.                   position = "166 60";
  624.                   extent = "78 18";
  625.                   minExtent = "8 8";
  626.                   visible = "1";
  627.                   helpTag = "0";
  628.                   maxLength = "255";
  629.                   historySize = "0";
  630.                   password = "0";
  631.                   tabComplete = "0";
  632.                   format = "%0.3f";
  633.                   range = "0 1";
  634.                   increment = "0.001";
  635.                   tooltipprofile = "GuiToolTipProfile";
  636.                   tooltip = "Determines roundness of hills. Lower values = more rounded hills.";
  637.                };
  638.                new GuiTextCtrl() {
  639.                   profile = "GuiTextProfile";
  640.                   horizSizing = "right";
  641.                   vertSizing = "bottom";
  642.                   position = "128 85";
  643.                   extent = "29 18";
  644.                   minExtent = "8 8";
  645.                   visible = "1";
  646.                   helpTag = "0";
  647.                   text = "Detail:";
  648.                   maxLength = "255";
  649.                   TooltipProfile = "GuiToolTipProfile";
  650.                   tooltip = "Higher values produce more jagged peaks.";
  651.                };
  652.                new GuiPopUpMenuCtrl(fbm_detail) {
  653.                   profile = "GuiPopUpMenuProfile";
  654.                   horizSizing = "right";
  655.                   vertSizing = "bottom";
  656.                   position = "166 85";
  657.                   extent = "78 18";
  658.                   minExtent = "8 8";
  659.                   visible = "1";
  660.                   command = "Heightfield::saveTab();Heightfield::preview($selectedOperation);";
  661.                   helpTag = "0";
  662.                   maxLength = "255";
  663.                   maxPopupHeight = "200";
  664.                   TooltipProfile = "GuiToolTipProfile";
  665.                   tooltip = "Higher values produce more jagged peaks.";
  666.                };
  667.             };
  668.             new GuiControl(tab_RMF) {
  669.                profile = "GuiDefaultProfile";
  670.                horizSizing = "right";
  671.                vertSizing = "bottom";
  672.                position = "0 0";
  673.                extent = "261 198";
  674.                minExtent = "8 8";
  675.                visible = "0";
  676.                helpTag = "0";
  677.  
  678.                new GuiTextCtrl() {
  679.                   profile = "GuiTextProfile";
  680.                   horizSizing = "right";
  681.                   vertSizing = "bottom";
  682.                   position = "6 6";
  683.                   extent = "125 18";
  684.                   minExtent = "8 8";
  685.                   visible = "1";
  686.                   helpTag = "0";
  687.                   text = "Rigid MultiFractal Settings:";
  688.                   maxLength = "255";
  689.                };
  690.                new GuiTextCtrl() {
  691.                   profile = "GuiTextProfile";
  692.                   horizSizing = "right";
  693.                   vertSizing = "bottom";
  694.                   position = "87 35";
  695.                   extent = "71 18";
  696.                   minExtent = "8 8";
  697.                   visible = "1";
  698.                   helpTag = "0";
  699.                   text = "Hill Frequency:";
  700.                   maxLength = "255";            
  701.                   tooltipprofile = "GuiToolTipProfile";
  702.                   tooltip = "Indirectly determines number of hills. Higher values create more hills.";
  703.                };
  704.                new GuiButtonCtrl() {
  705.                   profile = "GuiButtonProfile";
  706.                   horizSizing = "right";
  707.                   vertSizing = "bottom";
  708.                   position = "168 137";
  709.                   extent = "73 20";
  710.                   minExtent = "8 8";
  711.                   visible = "1";
  712.                   command = "rmf_seed.setValue(terraFormer.generateSeed());Heightfield::saveTab();Heightfield::preview($selectedOperation);";
  713.                   helpTag = "0";
  714.                   text = "New Seed";
  715.                   groupNum = "-1";
  716.                   buttonType = "PushButton";
  717.                };
  718.                new GuiTextCtrl() {
  719.                   profile = "GuiTextProfile";
  720.                   horizSizing = "right";
  721.                   vertSizing = "bottom";
  722.                   position = "101 60";
  723.                   extent = "58 18";
  724.                   minExtent = "8 8";
  725.                   visible = "1";
  726.                   helpTag = "0";
  727.                   text = "Roughness:";
  728.                   maxLength = "255";                
  729.                   tooltipprofile = "GuiToolTipProfile";
  730.                   tooltip = "Determines roundness of hills. Lower values = more rounded hills.";
  731.                };
  732.                new GuiTextEditSliderCtrl(rmf_interval) {
  733.                   profile = "GuiTextEditProfile";
  734.                   horizSizing = "right";
  735.                   vertSizing = "bottom";
  736.                   position = "166 35";
  737.                   extent = "78 18";
  738.                   minExtent = "8 8";
  739.                   visible = "1";
  740.                   helpTag = "0";
  741.                   maxLength = "255";
  742.                   historySize = "0";
  743.                   password = "0";
  744.                   tabComplete = "0";
  745.                   format = "%1.0f";
  746.                   range = "1 16";
  747.                   increment = "1";         
  748.                   tooltipprofile = "GuiToolTipProfile";
  749.                   tooltip = "Indirectly determines number of hills. Higher values create more hills.";
  750.                };
  751.                new GuiTextCtrl() {
  752.                   profile = "GuiTextProfile";
  753.                   horizSizing = "right";
  754.                   vertSizing = "bottom";
  755.                   position = "90 111";
  756.                   extent = "67 18";
  757.                   minExtent = "8 8";
  758.                   visible = "1";
  759.                   helpTag = "0";
  760.                   text = "Random Seed";
  761.                   maxLength = "255";
  762.                   tooltipprofile = "GuiToolTipProfile";
  763.                   tooltip = "Seed value for random number generator.";
  764.                };
  765.                new GuiTextEditCtrl(rmf_seed) {
  766.                   profile = "GuiTextEditProfile";
  767.                   horizSizing = "right";
  768.                   vertSizing = "bottom";
  769.                   position = "166 110";
  770.                   extent = "78 18";
  771.                   minExtent = "8 8";
  772.                   visible = "1";
  773.                   helpTag = "0";
  774.                   text = "0";
  775.                   maxLength = "255";
  776.                   historySize = "5";
  777.                   password = "0";
  778.                   tabComplete = "0";
  779.                   tooltipprofile = "GuiToolTipProfile";
  780.                   tooltip = "Seed value for random number generator.";
  781.                };
  782.                new GuiTextEditSliderCtrl(rmf_rough) {
  783.                   profile = "GuiTextEditProfile";
  784.                   horizSizing = "right";
  785.                   vertSizing = "bottom";
  786.                   position = "166 60";
  787.                   extent = "78 18";
  788.                   minExtent = "8 8";
  789.                   visible = "1";
  790.                   helpTag = "0";
  791.                   maxLength = "255";
  792.                   historySize = "0";
  793.                   password = "0";
  794.                   tabComplete = "0";
  795.                   format = "%0.3f";
  796.                   range = "0 1";
  797.                   increment = "0.001";
  798.                   tooltipprofile = "GuiToolTipProfile";
  799.                   tooltip = "Determines roundness of hills. Lower values = more rounded hills.";
  800.                };
  801.                new GuiTextCtrl() {
  802.                   profile = "GuiTextProfile";
  803.                   horizSizing = "right";
  804.                   vertSizing = "bottom";
  805.                   position = "128 85";
  806.                   extent = "29 18";
  807.                   minExtent = "8 8";
  808.                   visible = "1";
  809.                   helpTag = "0";
  810.                   text = "Detail:";
  811.                   maxLength = "255";
  812.                   TooltipProfile = "GuiToolTipProfile";
  813.                   tooltip = "Higher values produce more jagged peaks.";
  814.                };
  815.                new GuiPopUpMenuCtrl(rmf_detail) {
  816.                   profile = "GuiPopUpMenuProfile";
  817.                   horizSizing = "right";
  818.                   vertSizing = "bottom";
  819.                   position = "166 85";
  820.                   extent = "78 18";
  821.                   minExtent = "8 8";
  822.                   visible = "1";
  823.                   command = "Heightfield::saveTab();Heightfield::preview($selectedOperation);";
  824.                   helpTag = "0";
  825.                   maxLength = "255";
  826.                   maxPopupHeight = "200";
  827.                   TooltipProfile = "GuiToolTipProfile";
  828.                   tooltip = "Higher values produce more jagged peaks.";
  829.                };
  830.             };
  831.             new GuiControl(tab_Canyon) {
  832.                profile = "GuiDefaultProfile";
  833.                horizSizing = "right";
  834.                vertSizing = "bottom";
  835.                position = "0 0";
  836.                extent = "261 198";
  837.                minExtent = "8 8";
  838.                visible = "0";
  839.                helpTag = "0";
  840.  
  841.                new GuiTextCtrl() {
  842.                   profile = "GuiTextProfile";
  843.                   horizSizing = "right";
  844.                   vertSizing = "bottom";
  845.                   position = "6 6";
  846.                   extent = "118 18";
  847.                   minExtent = "8 8";
  848.                   visible = "1";
  849.                   helpTag = "0";
  850.                   text = "Canyon Fractal Settings:";
  851.                   maxLength = "255";
  852.                };
  853.                new GuiTextCtrl() {
  854.                   profile = "GuiTextProfile";
  855.                   horizSizing = "right";
  856.                   vertSizing = "bottom";
  857.                   position = "124 61";
  858.                   extent = "34 18";
  859.                   minExtent = "8 8";
  860.                   visible = "1";
  861.                   helpTag = "0";
  862.                   text = "Chaos:";
  863.                   maxLength = "255";
  864.                   tooltipprofile = "GuiToolTipProfile";
  865.                   tooltip = "0 = very straight canyons. 1 = very squirrelly canyons.";
  866.                };
  867.                new GuiTextEditSliderCtrl(canyon_freq) {
  868.                   profile = "GuiTextEditProfile";
  869.                   horizSizing = "right";
  870.                   vertSizing = "bottom";
  871.                   position = "166 35";
  872.                   extent = "78 18";
  873.                   minExtent = "8 8";
  874.                   visible = "1";
  875.                   helpTag = "0";
  876.                   maxLength = "255";
  877.                   historySize = "0";
  878.                   password = "0";
  879.                   tabComplete = "0";
  880.                   format = "%1.0f";
  881.                   range = "4 10";
  882.                   increment = "1";
  883.                   tooltipprofile = "GuiToolTipProfile";
  884.                   tooltip = "Number of canyons to produce.";
  885.                };
  886.                new GuiTextCtrl() {
  887.                   profile = "GuiTextProfile";
  888.                   horizSizing = "right";
  889.                   vertSizing = "bottom";
  890.                   position = "63 35";
  891.                   extent = "95 18";
  892.                   minExtent = "8 8";
  893.                   visible = "1";
  894.                   helpTag = "0";
  895.                   text = "Canyon Frequency:";
  896.                   maxLength = "255";
  897.                   tooltipprofile = "GuiToolTipProfile";
  898.                   tooltip = "Number of canyons to produce.";
  899.                };
  900.                new GuiButtonCtrl() {
  901.                   profile = "GuiButtonProfile";
  902.                   horizSizing = "right";
  903.                   vertSizing = "bottom";
  904.                   position = "168 114";
  905.                   extent = "73 20";
  906.                   minExtent = "8 8";
  907.                   visible = "1";
  908.                   command = "canyon_seed.setValue(terraFormer.generateSeed());Heightfield::saveTab();Heightfield::preview($selectedOperation);";
  909.                   helpTag = "0";
  910.                   text = "New Seed";
  911.                   groupNum = "-1";
  912.                   buttonType = "PushButton";
  913.                };
  914.                new GuiTextCtrl() {
  915.                   profile = "GuiTextProfile";
  916.                   horizSizing = "right";
  917.                   vertSizing = "bottom";
  918.                   position = "88 89";
  919.                   extent = "70 18";
  920.                   minExtent = "8 8";
  921.                   visible = "1";
  922.                   helpTag = "0";
  923.                   text = "Random Seed:";
  924.                   maxLength = "255";
  925.                   tooltipprofile = "GuiToolTipProfile";
  926.                   tooltip = "Seed value for random number generator.";
  927.                };
  928.                new GuiTextEditCtrl(canyon_seed) {
  929.                   profile = "GuiTextEditProfile";
  930.                   horizSizing = "right";
  931.                   vertSizing = "bottom";
  932.                   position = "166 89";
  933.                   extent = "78 18";
  934.                   minExtent = "8 8";
  935.                   visible = "1";
  936.                   helpTag = "0";
  937.                   text = "0";
  938.                   maxLength = "255";
  939.                   historySize = "5";
  940.                   password = "0";
  941.                   tabComplete = "0";
  942.                   tooltipprofile = "GuiToolTipProfile";
  943.                   tooltip = "Seed value for random number generator.";
  944.                };
  945.                new GuiTextEditSliderCtrl(canyon_factor) {
  946.                   profile = "GuiTextEditProfile";
  947.                   horizSizing = "right";
  948.                   vertSizing = "bottom";
  949.                   position = "166 62";
  950.                   extent = "78 18";
  951.                   minExtent = "8 8";
  952.                   visible = "1";
  953.                   helpTag = "0";
  954.                   maxLength = "255";
  955.                   historySize = "0";
  956.                   password = "0";
  957.                   tabComplete = "0";
  958.                   format = "%0.3f";
  959.                   range = "0 1";
  960.                   increment = "0.001";
  961.                   tooltipprofile = "GuiToolTipProfile";
  962.                   tooltip = "0 = very straight canyons. 1 = very squirrelly canyons.";
  963.                };
  964.             };
  965.             new GuiControl(tab_Smooth) {
  966.                profile = "GuiDefaultProfile";
  967.                horizSizing = "right";
  968.                vertSizing = "bottom";
  969.                position = "0 0";
  970.                extent = "261 198";
  971.                minExtent = "8 8";
  972.                visible = "0";
  973.                helpTag = "0";
  974.  
  975.                new GuiTextCtrl() {
  976.                   profile = "GuiTextProfile";
  977.                   horizSizing = "right";
  978.                   vertSizing = "bottom";
  979.                   position = "6 6";
  980.                   extent = "95 18";
  981.                   minExtent = "8 8";
  982.                   visible = "1";
  983.                   helpTag = "0";
  984.                   text = "Smoothing Settings:";
  985.                   maxLength = "255";
  986.                };
  987.                new GuiTextCtrl() {
  988.                   profile = "GuiTextProfile";
  989.                   horizSizing = "right";
  990.                   vertSizing = "bottom";
  991.                   position = "79 64";
  992.                   extent = "77 18";
  993.                   minExtent = "8 8";
  994.                   visible = "1";
  995.                   helpTag = "0";
  996.                   text = "Agressiveness:";
  997.                   maxLength = "255";
  998.                   tooltipprofile = "GuiToolTipProfile";
  999.                   tooltip = "A relative factor, determining how much material to remove.";
  1000.                };
  1001.                new GuiTextEditSliderCtrl(smooth_iter) {
  1002.                   profile = "GuiTextEditProfile";
  1003.                   horizSizing = "right";
  1004.                   vertSizing = "bottom";
  1005.                   position = "166 35";
  1006.                   extent = "78 18";
  1007.                   minExtent = "8 8";
  1008.                   visible = "1";
  1009.                   command = "Heightfield::saveTab($selectedOperation);Heightfield::preview($selectedOperation);";
  1010.                   helpTag = "0";
  1011.                   maxLength = "255";
  1012.                   historySize = "0";
  1013.                   password = "0";
  1014.                   tabComplete = "0";
  1015.                   format = "%1.0f";
  1016.                   range = "0 40";
  1017.                   increment = "1";
  1018.                   tooltipprofile = "GuiToolTipProfile";
  1019.                   tooltip = "Number of smoothing passes to run.";
  1020.                };
  1021.                new GuiTextCtrl() {
  1022.                   profile = "GuiTextProfile";
  1023.                   horizSizing = "right";
  1024.                   vertSizing = "bottom";
  1025.                   position = "109 36";
  1026.                   extent = "47 18";
  1027.                   minExtent = "8 8";
  1028.                   visible = "1";
  1029.                   helpTag = "0";
  1030.                   text = "Iterations:";
  1031.                   maxLength = "255";
  1032.                   tooltipprofile = "GuiToolTipProfile";
  1033.                   tooltip = "Number of smoothing passes to run.";
  1034.                };
  1035.                new GuiTextEditSliderCtrl(smooth_factor) {
  1036.                   profile = "GuiTextEditProfile";
  1037.                   horizSizing = "right";
  1038.                   vertSizing = "bottom";
  1039.                   position = "166 63";
  1040.                   extent = "78 18";
  1041.                   minExtent = "8 8";
  1042.                   visible = "1";
  1043.                   helpTag = "0";
  1044.                   maxLength = "255";
  1045.                   historySize = "0";
  1046.                   password = "0";
  1047.                   tabComplete = "0";
  1048.                   format = "%0.3f";
  1049.                   range = "0 1";
  1050.                   increment = "0.001";
  1051.                   tooltipprofile = "GuiToolTipProfile";
  1052.                   tooltip = "A relative factor, determining how much material to remove.";
  1053.                };
  1054.             };
  1055.             new GuiControl(tab_SmoothWater) {
  1056.                profile = "GuiDefaultProfile";
  1057.                horizSizing = "right";
  1058.                vertSizing = "bottom";
  1059.                position = "0 0";
  1060.                extent = "261 198";
  1061.                minExtent = "8 8";
  1062.                visible = "0";
  1063.                helpTag = "0";
  1064.  
  1065.                new GuiTextCtrl() {
  1066.                   profile = "GuiTextProfile";
  1067.                   horizSizing = "right";
  1068.                   vertSizing = "bottom";
  1069.                   position = "6 6";
  1070.                   extent = "154 18";
  1071.                   minExtent = "8 8";
  1072.                   visible = "1";
  1073.                   helpTag = "0";
  1074.                   text = "Water Area Smoothing Settings:";
  1075.                   maxLength = "255";
  1076.                };
  1077.                new GuiTextCtrl() {
  1078.                   profile = "GuiTextProfile";
  1079.                   horizSizing = "right";
  1080.                   vertSizing = "bottom";
  1081.                   position = "79 64";
  1082.                   extent = "77 18";
  1083.                   minExtent = "8 8";
  1084.                   visible = "1";
  1085.                   helpTag = "0";
  1086.                   text = "Agressiveness:";
  1087.                   maxLength = "255";
  1088.                   tooltipprofile = "GuiToolTipProfile";
  1089.                   tooltip = "A relative factor, determining how much material to remove.";
  1090.                };
  1091.                new GuiTextEditSliderCtrl(watersmooth_iter) {
  1092.                   profile = "GuiTextEditProfile";
  1093.                   horizSizing = "right";
  1094.                   vertSizing = "bottom";
  1095.                   position = "166 35";
  1096.                   extent = "78 18";
  1097.                   minExtent = "8 8";
  1098.                   visible = "1";
  1099.                   command = "Heightfield::saveTab($selectedOperation);Heightfield::preview($selectedOperation);";
  1100.                   helpTag = "0";
  1101.                   maxLength = "255";
  1102.                   historySize = "0";
  1103.                   password = "0";
  1104.                   tabComplete = "0";
  1105.                   format = "%1.0f";
  1106.                   range = "0 40";
  1107.                   increment = "1";
  1108.                   tooltipprofile = "GuiToolTipProfile";
  1109.                   tooltip = "Number of smoothing passes to run.";
  1110.                };
  1111.                new GuiTextCtrl() {
  1112.                   profile = "GuiTextProfile";
  1113.                   horizSizing = "right";
  1114.                   vertSizing = "bottom";
  1115.                   position = "109 36";
  1116.                   extent = "47 18";
  1117.                   minExtent = "8 8";
  1118.                   visible = "1";
  1119.                   helpTag = "0";
  1120.                   text = "Iterations:";
  1121.                   maxLength = "255";
  1122.                   tooltipprofile = "GuiToolTipProfile";
  1123.                   tooltip = "Number of smoothing passes to run.";
  1124.                };
  1125.                new GuiTextEditSliderCtrl(watersmooth_factor) {
  1126.                   profile = "GuiTextEditProfile";
  1127.                   horizSizing = "right";
  1128.                   vertSizing = "bottom";
  1129.                   position = "166 63";
  1130.                   extent = "78 18";
  1131.                   minExtent = "8 8";
  1132.                   visible = "1";
  1133.                   helpTag = "0";
  1134.                   maxLength = "255";
  1135.                   historySize = "0";
  1136.                   password = "0";
  1137.                   tabComplete = "0";
  1138.                   format = "%0.3f";
  1139.                   range = "0 1";
  1140.                   increment = "0.001";
  1141.                   tooltipprofile = "GuiToolTipProfile";
  1142.                   tooltip = "A relative factor, determining how much material to remove.";
  1143.                };
  1144.             };
  1145.             new GuiControl(tab_SmoothRidge) {
  1146.                profile = "GuiDefaultProfile";
  1147.                horizSizing = "right";
  1148.                vertSizing = "bottom";
  1149.                position = "0 0";
  1150.                extent = "261 198";
  1151.                minExtent = "8 8";
  1152.                visible = "0";
  1153.                helpTag = "0";
  1154.  
  1155.                new GuiTextCtrl() {
  1156.                   profile = "GuiTextProfile";
  1157.                   horizSizing = "right";
  1158.                   vertSizing = "bottom";
  1159.                   position = "6 6";
  1160.                   extent = "152 18";
  1161.                   minExtent = "8 8";
  1162.                   visible = "1";
  1163.                   helpTag = "0";
  1164.                   text = "Ridge Area Smoothing Settings:";
  1165.                   maxLength = "255";
  1166.                };
  1167.                new GuiTextCtrl() {
  1168.                   profile = "GuiTextProfile";
  1169.                   horizSizing = "right";
  1170.                   vertSizing = "bottom";
  1171.                   position = "79 64";
  1172.                   extent = "77 18";
  1173.                   minExtent = "8 8";
  1174.                   visible = "1";
  1175.                   helpTag = "0";
  1176.                   text = "Agressiveness:";
  1177.                   maxLength = "255";
  1178.                   tooltipprofile = "GuiToolTipProfile";
  1179.                   tooltip = "A relative factor, determining how much material to remove.";
  1180.                };
  1181.                new GuiTextEditSliderCtrl(Ridgesmooth_iter) {
  1182.                   profile = "GuiTextEditProfile";
  1183.                   horizSizing = "right";
  1184.                   vertSizing = "bottom";
  1185.                   position = "166 35";
  1186.                   extent = "78 18";
  1187.                   minExtent = "8 8";
  1188.                   visible = "1";
  1189.                   command = "Heightfield::saveTab($selectedOperation);Heightfield::preview($selectedOperation);";
  1190.                   helpTag = "0";
  1191.                   maxLength = "255";
  1192.                   historySize = "0";
  1193.                   password = "0";
  1194.                   tabComplete = "0";
  1195.                   format = "%1.0f";
  1196.                   range = "0 40";
  1197.                   increment = "1";
  1198.                   tooltipprofile = "GuiToolTipProfile";
  1199.                   tooltip = "Number of smoothing passes to run.";
  1200.                };
  1201.                new GuiTextCtrl() {
  1202.                   profile = "GuiTextProfile";
  1203.                   horizSizing = "right";
  1204.                   vertSizing = "bottom";
  1205.                   position = "109 36";
  1206.                   extent = "47 18";
  1207.                   minExtent = "8 8";
  1208.                   visible = "1";
  1209.                   helpTag = "0";
  1210.                   text = "Iterations:";
  1211.                   maxLength = "255";
  1212.                   tooltipprofile = "GuiToolTipProfile";
  1213.                   tooltip = "Number of smoothing passes to run.";
  1214.                };
  1215.                new GuiTextEditSliderCtrl(Ridgesmooth_factor) {
  1216.                   profile = "GuiTextEditProfile";
  1217.                   horizSizing = "right";
  1218.                   vertSizing = "bottom";
  1219.                   position = "166 63";
  1220.                   extent = "78 18";
  1221.                   minExtent = "8 8";
  1222.                   visible = "1";
  1223.                   helpTag = "0";
  1224.                   maxLength = "255";
  1225.                   historySize = "0";
  1226.                   password = "0";
  1227.                   tabComplete = "0";
  1228.                   format = "%0.3f";
  1229.                   range = "0 1";
  1230.                   increment = "0.001";
  1231.                   tooltipprofile = "GuiToolTipProfile";
  1232.                   tooltip = "A relative factor, determining how much material to remove.";
  1233.                };
  1234.             };
  1235.             new GuiControl(tab_Filter) {
  1236.                profile = "GuiDefaultProfile";
  1237.                horizSizing = "right";
  1238.                vertSizing = "bottom";
  1239.                position = "0 0";
  1240.                extent = "261 198";
  1241.                minExtent = "8 8";
  1242.                visible = "0";
  1243.                helpTag = "0";
  1244.  
  1245.                new GuiTextCtrl() {
  1246.                   profile = "GuiTextProfile";
  1247.                   horizSizing = "right";
  1248.                   vertSizing = "bottom";
  1249.                   position = "6 6";
  1250.                   extent = "101 18";
  1251.                   minExtent = "8 8";
  1252.                   visible = "1";
  1253.                   helpTag = "0";
  1254.                   text = "Height Filter Settings:";
  1255.                   maxLength = "255";
  1256.                };
  1257.                new GuiFilterCtrl(filter) {
  1258.                   profile = "GuiDefaultProfile";
  1259.                   horizSizing = "right";
  1260.                   vertSizing = "bottom";
  1261.                   position = "16 29";
  1262.                   extent = "130 130";
  1263.                   minExtent = "8 8";
  1264.                   visible = "1";
  1265.                   command = "Heightfield::saveTab($selectedOperation);Heightfield::preview($selectedOperation);";
  1266.                   helpTag = "0";
  1267.                   controlPoints = "7";
  1268.                   filter = "0.000000 0.130770 0.161540 0.223080 0.369230 0.507690 1.000000";
  1269.                };
  1270.                new GuiTextCtrl() {
  1271.                   profile = "GuiTextProfile";
  1272.                   horizSizing = "right";
  1273.                   vertSizing = "bottom";
  1274.                   position = "154 84";
  1275.                   extent = "30 18";
  1276.                   minExtent = "8 8";
  1277.                   visible = "1";
  1278.                   helpTag = "0";
  1279.                   text = "Result";
  1280.                   maxLength = "255";
  1281.                };
  1282.                new GuiTextCtrl() {
  1283.                   profile = "GuiTextProfile";
  1284.                   horizSizing = "right";
  1285.                   vertSizing = "bottom";
  1286.                   position = "68 167";
  1287.                   extent = "23 18";
  1288.                   minExtent = "8 8";
  1289.                   visible = "1";
  1290.                   helpTag = "0";
  1291.                   text = "Input";
  1292.                   maxLength = "255";
  1293.                };
  1294.                new GuiTextCtrl() {
  1295.                   profile = "GuiTextProfile";
  1296.                   horizSizing = "right";
  1297.                   vertSizing = "bottom";
  1298.                   position = "16 160";
  1299.                   extent = "16 18";
  1300.                   minExtent = "8 8";
  1301.                   visible = "1";
  1302.                   helpTag = "0";
  1303.                   text = "min";
  1304.                   maxLength = "255";
  1305.                };
  1306.                new GuiTextCtrl() {
  1307.                   profile = "GuiTextProfile";
  1308.                   horizSizing = "right";
  1309.                   vertSizing = "bottom";
  1310.                   position = "127 160";
  1311.                   extent = "20 18";
  1312.                   minExtent = "8 8";
  1313.                   visible = "1";
  1314.                   helpTag = "0";
  1315.                   text = "max";
  1316.                   maxLength = "255";
  1317.                };
  1318.                new GuiTextCtrl() {
  1319.                   profile = "GuiTextProfile";
  1320.                   horizSizing = "right";
  1321.                   vertSizing = "bottom";
  1322.                   position = "150 142";
  1323.                   extent = "16 18";
  1324.                   minExtent = "8 8";
  1325.                   visible = "1";
  1326.                   helpTag = "0";
  1327.                   text = "min";
  1328.                   maxLength = "255";
  1329.                };
  1330.                new GuiTextCtrl() {
  1331.                   profile = "GuiTextProfile";
  1332.                   horizSizing = "right";
  1333.                   vertSizing = "bottom";
  1334.                   position = "150 28";
  1335.                   extent = "20 18";
  1336.                   minExtent = "8 8";
  1337.                   visible = "1";
  1338.                   helpTag = "0";
  1339.                   text = "max";
  1340.                   maxLength = "255";
  1341.                };
  1342.                new GuiTextEditSliderCtrl() {
  1343.                   profile = "GuiTextEditProfile";
  1344.                   horizSizing = "right";
  1345.                   vertSizing = "bottom";
  1346.                   position = "189 139";
  1347.                   extent = "61 18";
  1348.                   minExtent = "8 8";
  1349.                   visible = "1";
  1350.                   variable = "filter.controlPoints";
  1351.                   command = "filter.controlPoints = $ThisControl.getValue();Heightfield::saveTab($selectedOperation);Heightfield::preview($selectedOperation);";
  1352.                   helpTag = "0";
  1353.                   maxLength = "255";
  1354.                   historySize = "0";
  1355.                   password = "0";
  1356.                   tabComplete = "0";
  1357.                   format = "%3.0f";
  1358.                   range = "2 20";
  1359.                   increment = "1";
  1360.                };
  1361.                new GuiTextCtrl() {
  1362.                   profile = "GuiTextProfile";
  1363.                   horizSizing = "right";
  1364.                   vertSizing = "bottom";
  1365.                   position = "187 118";
  1366.                   extent = "66 18";
  1367.                   minExtent = "8 8";
  1368.                   visible = "1";
  1369.                   helpTag = "0";
  1370.                   text = "Control Points";
  1371.                   maxLength = "255";
  1372.                };
  1373.             };
  1374.             new GuiControl(tab_Turbulence) {
  1375.                profile = "GuiDefaultProfile";
  1376.                horizSizing = "right";
  1377.                vertSizing = "bottom";
  1378.                position = "0 0";
  1379.                extent = "261 198";
  1380.                minExtent = "8 8";
  1381.                visible = "0";
  1382.                helpTag = "0";
  1383.  
  1384.                new GuiTextCtrl() {
  1385.                   profile = "GuiTextProfile";
  1386.                   horizSizing = "right";
  1387.                   vertSizing = "bottom";
  1388.                   position = "6 6";
  1389.                   extent = "99 18";
  1390.                   minExtent = "8 8";
  1391.                   visible = "1";
  1392.                   helpTag = "0";
  1393.                   text = "Turbulence Settings:";
  1394.                   maxLength = "255";
  1395.                };
  1396.                new GuiTextCtrl() {
  1397.                   profile = "GuiTextProfile";
  1398.                   horizSizing = "right";
  1399.                   vertSizing = "bottom";
  1400.                   position = "65 34";
  1401.                   extent = "91 18";
  1402.                   minExtent = "8 8";
  1403.                   visible = "1";
  1404.                   helpTag = "0";
  1405.                   text = "Turbulence Factor:";
  1406.                   maxLength = "255";
  1407.                      tooltipprofile = "GuiToolTipProfile";
  1408.                   tooltip = "Determines strength of action. Lower values = less displacement.";
  1409.                };
  1410.                new GuiTextEditSliderCtrl(turbulence_factor) {
  1411.                   profile = "GuiTextEditProfile";
  1412.                   horizSizing = "right";
  1413.                   vertSizing = "bottom";
  1414.                   position = "166 35";
  1415.                   extent = "78 18";
  1416.                   minExtent = "8 8";
  1417.                   visible = "1";
  1418.                   helpTag = "0";
  1419.                   maxLength = "255";
  1420.                   historySize = "0";
  1421.                   password = "0";
  1422.                   tabComplete = "0";
  1423.                   format = "%0.3f";
  1424.                   range = "0 1";
  1425.                   increment = "0.001";
  1426.                      tooltipprofile = "GuiToolTipProfile";
  1427.                   tooltip = "Determines strength of action. Lower values = less displacement.";
  1428.                };
  1429.                new GuiTextCtrl() {
  1430.                   profile = "GuiTextProfile";
  1431.                   horizSizing = "right";
  1432.                   vertSizing = "bottom";
  1433.                   position = "75 61";
  1434.                   extent = "81 18";
  1435.                   minExtent = "8 8";
  1436.                   visible = "1";
  1437.                   helpTag = "0";
  1438.                   text = "Radius of Effect:";
  1439.                   maxLength = "255";
  1440.                      tooltipprofile = "GuiToolTipProfile";
  1441.                   tooltip = "Determines filter size.";
  1442.                };
  1443.                new GuiTextEditSliderCtrl(turbulence_radius) {
  1444.                   profile = "GuiTextEditProfile";
  1445.                   horizSizing = "right";
  1446.                   vertSizing = "bottom";
  1447.                   position = "166 61";
  1448.                   extent = "78 18";
  1449.                   minExtent = "8 8";
  1450.                   visible = "1";
  1451.                   helpTag = "0";
  1452.                   maxLength = "255";
  1453.                   historySize = "0";
  1454.                   password = "0";
  1455.                   tabComplete = "0";
  1456.                   format = "%1.0f";
  1457.                   range = "1 40";
  1458.                   increment = "1";
  1459.                      tooltipprofile = "GuiToolTipProfile";
  1460.                   tooltip = "Determines filter size.";
  1461.                };
  1462.             };
  1463.             new GuiControl(tab_Thermal) {
  1464.                profile = "GuiDefaultProfile";
  1465.                horizSizing = "right";
  1466.                vertSizing = "bottom";
  1467.                position = "0 0";
  1468.                extent = "261 198";
  1469.                minExtent = "8 8";
  1470.                visible = "0";
  1471.                helpTag = "0";
  1472.  
  1473.                new GuiTextCtrl() {
  1474.                   profile = "GuiTextProfile";
  1475.                   horizSizing = "right";
  1476.                   vertSizing = "bottom";
  1477.                   position = "6 6";
  1478.                   extent = "122 18";
  1479.                   minExtent = "8 8";
  1480.                   visible = "1";
  1481.                   helpTag = "0";
  1482.                   text = "Thermal Erosion Settings:";
  1483.                   maxLength = "255";
  1484.                };
  1485.                new GuiTextCtrl() {
  1486.                   profile = "GuiTextProfile";
  1487.                   horizSizing = "right";
  1488.                   vertSizing = "bottom";
  1489.                   position = "112 36";
  1490.                   extent = "47 18";
  1491.                   minExtent = "8 8";
  1492.                   visible = "1";
  1493.                   helpTag = "0";
  1494.                   text = "Iterations:";
  1495.                   maxLength = "255";
  1496.                   tooltipprofile = "GuiToolTipProfile";
  1497.                   tooltip = "Number of smoothing passes to run.";
  1498.                };
  1499.                new GuiTextCtrl() {
  1500.                   profile = "GuiTextProfile";
  1501.                   horizSizing = "right";
  1502.                   vertSizing = "bottom";
  1503.                   position = "79 91";
  1504.                   extent = "80 18";
  1505.                   minExtent = "8 8";
  1506.                   visible = "1";
  1507.                   helpTag = "0";
  1508.                   text = "Material Loss %:";
  1509.                   maxLength = "255";
  1510.                   tooltipprofile = "GuiToolTipProfile";
  1511.                   tooltip = "What relative percentage of material should be removed per pass.";
  1512.                };
  1513.                new GuiTextCtrl() {
  1514.                   profile = "GuiTextProfile";
  1515.                   horizSizing = "right";
  1516.                   vertSizing = "bottom";
  1517.                   position = "20 63";
  1518.                   extent = "139 18";
  1519.                   minExtent = "8 8";
  1520.                   visible = "1";
  1521.                   helpTag = "0";
  1522.                   text = "Min Erosion Slope (degrees):";
  1523.                   maxLength = "255";
  1524.                   tooltipprofile = "GuiToolTipProfile";
  1525.                   tooltip = "Defines a cut-off slope value.";
  1526.                };
  1527.                new GuiTextEditSliderCtrl(thermal_iter) {
  1528.                   profile = "GuiTextEditProfile";
  1529.                   horizSizing = "right";
  1530.                   vertSizing = "bottom";
  1531.                   position = "166 36";
  1532.                   extent = "78 18";
  1533.                   minExtent = "8 8";
  1534.                   visible = "1";
  1535.                   helpTag = "0";
  1536.                   maxLength = "255";
  1537.                   historySize = "0";
  1538.                   password = "0";
  1539.                   tabComplete = "0";
  1540.                   format = "%1.0f";
  1541.                   range = "0 50";
  1542.                   increment = "1";
  1543.                   tooltipprofile = "GuiToolTipProfile";
  1544.                   tooltip = "Number of smoothing passes to run.";
  1545.                };
  1546.                new GuiTextEditSliderCtrl(thermal_slope) {
  1547.                   profile = "GuiTextEditProfile";
  1548.                   horizSizing = "right";
  1549.                   vertSizing = "bottom";
  1550.                   position = "166 63";
  1551.                   extent = "78 18";
  1552.                   minExtent = "8 8";
  1553.                   visible = "1";
  1554.                   helpTag = "0";
  1555.                   maxLength = "255";
  1556.                   historySize = "0";
  1557.                   password = "0";
  1558.                   tabComplete = "0";
  1559.                   format = "%2.1f";
  1560.                   range = "0 89";
  1561.                   increment = "0.1";
  1562.                   tooltipprofile = "GuiToolTipProfile";
  1563.                   tooltip = "Defines a cut-off slope value.";
  1564.                };
  1565.                new GuiTextEditSliderCtrl(thermal_cons) {
  1566.                   profile = "GuiTextEditProfile";
  1567.                   horizSizing = "right";
  1568.                   vertSizing = "bottom";
  1569.                   position = "166 90";
  1570.                   extent = "78 18";
  1571.                   minExtent = "8 8";
  1572.                   visible = "1";
  1573.                   helpTag = "0";
  1574.                   maxLength = "255";
  1575.                   historySize = "0";
  1576.                   password = "0";
  1577.                   tabComplete = "0";
  1578.                   format = "%2.1f";
  1579.                   range = "0 100";
  1580.                   increment = "0.1";
  1581.                   tooltipprofile = "GuiToolTipProfile";
  1582.                   tooltip = "What relative percentage of material should be removed per pass.";
  1583.                };
  1584.             };
  1585.             new GuiControl(tab_Hydraulic) {
  1586.                profile = "GuiDefaultProfile";
  1587.                horizSizing = "right";
  1588.                vertSizing = "bottom";
  1589.                position = "0 0";
  1590.                extent = "259 198";
  1591.                minExtent = "8 8";
  1592.                visible = "0";
  1593.                helpTag = "0";
  1594.  
  1595.                new GuiTextCtrl() {
  1596.                   profile = "GuiTextProfile";
  1597.                   horizSizing = "right";
  1598.                   vertSizing = "bottom";
  1599.                   position = "6 6";
  1600.                   extent = "129 18";
  1601.                   minExtent = "8 8";
  1602.                   visible = "1";
  1603.                   helpTag = "0";
  1604.                   text = "Hydraulic Erosion Settings:";
  1605.                   maxLength = "255";
  1606.                };
  1607.                new GuiTextCtrl() {
  1608.                   profile = "GuiTextProfile";
  1609.                   horizSizing = "right";
  1610.                   vertSizing = "bottom";
  1611.                   position = "112 34";
  1612.                   extent = "47 18";
  1613.                   minExtent = "8 8";
  1614.                   visible = "1";
  1615.                   helpTag = "0";
  1616.                   text = "Iterations:";
  1617.                   maxLength = "255";
  1618.                   tooltipprofile = "GuiToolTipProfile";
  1619.                   tooltip = "Number of erosion passes to run.";
  1620.                };
  1621.                new GuiFilterCtrl(hydraulic_filter) {
  1622.                   profile = "GuiDefaultProfile";
  1623.                   horizSizing = "right";
  1624.                   vertSizing = "bottom";
  1625.                   position = "16 57";
  1626.                   extent = "130 130";
  1627.                   minExtent = "8 8";
  1628.                   visible = "1";
  1629.                   command = "Heightfield::saveTab();Heightfield::preview($selectedOperation);";
  1630.                   helpTag = "0";
  1631.                   controlPoints = "7";
  1632.                   filter = "0.000000 0.166667 0.333333 0.500000 0.666667 0.833333 1.000000";
  1633.                };
  1634.                new GuiTextEditSliderCtrl(hydraulic_iter) {
  1635.                   profile = "GuiTextEditProfile";
  1636.                   horizSizing = "right";
  1637.                   vertSizing = "bottom";
  1638.                   position = "166 35";
  1639.                   extent = "78 18";
  1640.                   minExtent = "8 8";
  1641.                   visible = "1";
  1642.                   helpTag = "0";
  1643.                   maxLength = "255";
  1644.                   historySize = "0";
  1645.                   password = "0";
  1646.                   tabComplete = "0";
  1647.                   format = "%1.0f";
  1648.                   range = "0 50";
  1649.                   increment = "1";
  1650.                   tooltipprofile = "GuiToolTipProfile";
  1651.                   tooltip = "Number of erosion passes to run.";
  1652.                };
  1653.                new GuiTextEditSliderCtrl() {
  1654.                   profile = "GuiTextEditProfile";
  1655.                   horizSizing = "right";
  1656.                   vertSizing = "bottom";
  1657.                   position = "165 161";
  1658.                   extent = "64 18";
  1659.                   minExtent = "8 8";
  1660.                   visible = "1";
  1661.                   variable = "hydraulic_filter.controlPoints";
  1662.                   command = "hydraulic_filter.controlPoints = $ThisControl.getValue();Heightfield::saveTab();Heightfield::preview($selectedOperation);";
  1663.                   helpTag = "0";
  1664.                   maxLength = "255";
  1665.                   historySize = "0";
  1666.                   password = "0";
  1667.                   tabComplete = "0";
  1668.                   format = "%3.0f";
  1669.                   range = "2 20";
  1670.                   increment = "1";
  1671.                };
  1672.                new GuiTextCtrl() {
  1673.                   profile = "GuiTextProfile";
  1674.                   horizSizing = "right";
  1675.                   vertSizing = "bottom";
  1676.                   position = "165 141";
  1677.                   extent = "69 18";
  1678.                   minExtent = "8 8";
  1679.                   visible = "1";
  1680.                   helpTag = "0";
  1681.                   text = "Control Points:";
  1682.                   maxLength = "255";
  1683.                };
  1684.             };
  1685.             new GuiControl(tab_Sinus) {
  1686.                profile = "GuiDefaultProfile";
  1687.                horizSizing = "right";
  1688.                vertSizing = "bottom";
  1689.                position = "0 0";
  1690.                extent = "259 199";
  1691.                minExtent = "8 8";
  1692.                visible = "0";
  1693.                helpTag = "0";
  1694.  
  1695.                new GuiTextCtrl() {
  1696.                   profile = "GuiTextProfile";
  1697.                   horizSizing = "right";
  1698.                   vertSizing = "bottom";
  1699.                   position = "6 6";
  1700.                   extent = "72 18";
  1701.                   minExtent = "8 8";
  1702.                   visible = "1";
  1703.                   helpTag = "0";
  1704.                   text = "Sinus Settings:";
  1705.                   maxLength = "255";
  1706.                };
  1707.                new GuiFilterCtrl(sinus_filter) {
  1708.                   profile = "GuiDefaultProfile";
  1709.                   horizSizing = "right";
  1710.                   vertSizing = "bottom";
  1711.                   position = "36 64";
  1712.                   extent = "130 130";
  1713.                   minExtent = "8 8";
  1714.                   visible = "1";
  1715.                   command = "Heightfield::saveTab();Heightfield::preview($selectedOperation);";
  1716.                   helpTag = "0";
  1717.                   controlPoints = "7";
  1718.                   filter = "0.176920 0.833330 0.876920 0.238460 0.215380 0.166660 0.000000";
  1719.                };
  1720.                new GuiTextCtrl() {
  1721.                   profile = "GuiTextProfile";
  1722.                   horizSizing = "right";
  1723.                   vertSizing = "bottom";
  1724.                   position = "100 32";
  1725.                   extent = "70 18";
  1726.                   minExtent = "8 8";
  1727.                   visible = "1";
  1728.                   helpTag = "0";
  1729.                   text = "Random Seed:";
  1730.                   maxLength = "255";
  1731.                   tooltipprofile = "GuiToolTipProfile";
  1732.                   tooltip = "Seed value for random number generator.";
  1733.                };
  1734.                new GuiTextEditCtrl(sinus_seed) {
  1735.                   profile = "GuiTextEditProfile";
  1736.                   horizSizing = "right";
  1737.                   vertSizing = "bottom";
  1738.                   position = "174 32";
  1739.                   extent = "78 18";
  1740.                   minExtent = "8 8";
  1741.                   visible = "1";
  1742.                   helpTag = "0";
  1743.                   text = "0";
  1744.                   maxLength = "255";
  1745.                   historySize = "5";
  1746.                   password = "0";
  1747.                   tabComplete = "0";
  1748.                   tooltipprofile = "GuiToolTipProfile";
  1749.                   tooltip = "Seed value for random number generator.";
  1750.                };
  1751.                new GuiButtonCtrl() {
  1752.                   profile = "GuiButtonProfile";
  1753.                   horizSizing = "right";
  1754.                   vertSizing = "bottom";
  1755.                   position = "177 66";
  1756.                   extent = "73 20";
  1757.                   minExtent = "8 8";
  1758.                   visible = "1";
  1759.                   command = "sinus_seed.setValue(terraFormer.generateSeed());Heightfield::saveTab();Heightfield::preview($selectedOperation);";
  1760.                   helpTag = "0";
  1761.                   text = "New Seed";
  1762.                   groupNum = "-1";
  1763.                   buttonType = "PushButton";
  1764.                };
  1765.                new GuiTextEditSliderCtrl() {
  1766.                   profile = "GuiTextEditProfile";
  1767.                   horizSizing = "right";
  1768.                   vertSizing = "bottom";
  1769.                   position = "178 171";
  1770.                   extent = "64 18";
  1771.                   minExtent = "8 8";
  1772.                   visible = "1";
  1773.                   variable = "sinus_filter.controlPoints";
  1774.                   command = "sinus_filter.controlPoints = $ThisControl.getValue();Heightfield::saveTab();Heightfield::preview($selectedOperation);";
  1775.                   helpTag = "0";
  1776.                   maxLength = "255";
  1777.                   historySize = "0";
  1778.                   password = "0";
  1779.                   tabComplete = "0";
  1780.                   format = "%3.0f";
  1781.                   range = "2 20";
  1782.                   increment = "1";
  1783.                };
  1784.                new GuiTextCtrl() {
  1785.                   profile = "GuiTextProfile";
  1786.                   horizSizing = "right";
  1787.                   vertSizing = "bottom";
  1788.                   position = "179 150";
  1789.                   extent = "69 18";
  1790.                   minExtent = "8 8";
  1791.                   visible = "1";
  1792.                   helpTag = "0";
  1793.                   text = "Control Points:";
  1794.                   maxLength = "255";
  1795.                };
  1796.             };
  1797.             new GuiControl(tab_terrainFile) {
  1798.                profile = "GuiContentProfile";
  1799.                horizSizing = "right";
  1800.                vertSizing = "bottom";
  1801.                position = "0 0";
  1802.                extent = "261 198";
  1803.                minExtent = "8 8";
  1804.                visible = "0";
  1805.                helpTag = "0";
  1806.  
  1807.                new GuiTextCtrl() {
  1808.                   profile = "GuiTextProfile";
  1809.                   horizSizing = "right";
  1810.                   vertSizing = "bottom";
  1811.                   position = "4 2";
  1812.                   extent = "53 18";
  1813.                   minExtent = "8 8";
  1814.                   visible = "1";
  1815.                   helpTag = "0";
  1816.                   text = "TerrainFile:";
  1817.                   maxLength = "255";
  1818.                };
  1819.                new GuiScrollCtrl() {
  1820.                   profile = "GuiScrollProfile";
  1821.                   horizSizing = "right";
  1822.                   vertSizing = "bottom";
  1823.                   position = "0 20";
  1824.                   extent = "262 180";
  1825.                   minExtent = "8 8";
  1826.                   visible = "1";
  1827.                   helpTag = "0";
  1828.                   willFirstRespond = "1";
  1829.                   hScrollBar = "dynamic";
  1830.                   vScrollBar = "alwaysOn";
  1831.                   constantThumbHeight = "0";
  1832.                   childMargin = "0 0";
  1833.  
  1834.                   new GuiTextListCtrl(terrainFile_textList) {
  1835.                      profile = "GuiTextArrayProfile";
  1836.                      horizSizing = "right";
  1837.                      vertSizing = "bottom";
  1838.                      position = "2 2";
  1839.                      extent = "240 8";
  1840.                      minExtent = "8 8";
  1841.                      visible = "1";
  1842.                      command = "terrainFile_terrFileText.setValue(\"terrains/\" @ terrainFile_textList.getRowTextById(terrainFile_textList.getSelectedId()));Heightfield::saveTab();Heightfield::preview($selectedOperation);";
  1843.                      helpTag = "0";
  1844.                      enumerate = "0";
  1845.                      resizeCell = "1";
  1846.                      columns = "0";
  1847.                      fitParentWidth = "1";
  1848.                      clipColumnText = "0";
  1849.                   };
  1850.                };
  1851.                new GuiTextCtrl(terrainFile_terrFileText) {
  1852.                   profile = "GuiTextProfile";
  1853.                   horizSizing = "right";
  1854.                   vertSizing = "bottom";
  1855.                   position = "64 2";
  1856.                   extent = "8 18";
  1857.                   minExtent = "8 8";
  1858.                   visible = "1";
  1859.                   helpTag = "0";
  1860.                   maxLength = "255";
  1861.                };
  1862.             };
  1863.             new GuiControl(tab_General) {
  1864.                profile = "GuiDefaultProfile";
  1865.                horizSizing = "right";
  1866.                vertSizing = "bottom";
  1867.                position = "0 0";
  1868.                extent = "261 198";
  1869.                minExtent = "8 8";
  1870.                visible = "1";
  1871.                helpTag = "0";
  1872.  
  1873.                new GuiTextCtrl() {
  1874.                   profile = "GuiTextProfile";
  1875.                   horizSizing = "right";
  1876.                   vertSizing = "bottom";
  1877.                   position = "6 6";
  1878.                   extent = "83 18";
  1879.                   minExtent = "8 8";
  1880.                   visible = "1";
  1881.                   helpTag = "0";
  1882.                   text = "General Settings:";
  1883.                   maxLength = "255";
  1884.                };
  1885.                new GuiTextCtrl() {
  1886.                   profile = "GuiTextProfile";
  1887.                   horizSizing = "right";
  1888.                   vertSizing = "bottom";
  1889.                   position = "8 53";
  1890.                   extent = "67 18";
  1891.                   minExtent = "8 8";
  1892.                   visible = "1";
  1893.                   helpTag = "0";
  1894.                   text = "Height Range:";
  1895.                   TooltipProfile = "GuiToolTipProfile";
  1896.                   tooltip = "Defines the maximum difference between min-height and max-height.";
  1897.                   maxLength = "255";
  1898.                };
  1899.                new GuiTextEditSliderCtrl(general_scale) {
  1900.                   profile = "GuiTextEditProfile";
  1901.                   horizSizing = "right";
  1902.                   vertSizing = "bottom";
  1903.                   position = "108 52";
  1904.                   extent = "64 18";
  1905.                   minExtent = "8 8";
  1906.                   visible = "1";
  1907.                   helpTag = "0";
  1908.                   maxLength = "255";
  1909.                   historySize = "0";
  1910.                   password = "0";
  1911.                   tabComplete = "0";
  1912.                   format = "%1.0f";
  1913.                   range = "5 500";
  1914.                   increment = "1";
  1915.                   TooltipProfile = "GuiToolTipProfile";
  1916.                   tooltip = "Defines the maximum difference between min-height and max-height.";
  1917.                };
  1918.                new GuiTextCtrl() {
  1919.                   profile = "GuiTextProfile";
  1920.                   horizSizing = "right";
  1921.                   vertSizing = "bottom";
  1922.                   position = "177 53";
  1923.                   extent = "33 18";
  1924.                   minExtent = "8 8";
  1925.                   visible = "1";
  1926.                   helpTag = "0";
  1927.                   text = "meters";
  1928.                   maxLength = "255";
  1929.                };
  1930.                new GuiTextCtrl() {
  1931.                   profile = "GuiTextProfile";
  1932.                   horizSizing = "right";
  1933.                   vertSizing = "bottom";
  1934.                   position = "29 93";
  1935.                   extent = "74 18";
  1936.                   minExtent = "8 8";
  1937.                   visible = "1";
  1938.                   helpTag = "0";
  1939.                   text = "Water Level %:";
  1940.                   maxLength = "255";
  1941.                   TooltipProfile = "GuiToolTipProfile";
  1942.                   tooltip = "A global value used as input to subsequent filters.";
  1943.                  };
  1944.                new GuiSliderCtrl(general_water) {
  1945.                   profile = "GuiTextProfile";
  1946.                   horizSizing = "right";
  1947.                   vertSizing = "bottom";
  1948.                   position = "22 113";
  1949.                   extent = "200 30";
  1950.                   minExtent = "8 8";
  1951.                   visible = "1";
  1952.                   variable = "value";
  1953.                   command = "general_water_meters.setValue(general_water.getValue()*general_scale.getValue()+general_min_height.getValue() @ \" meters\");Heightfield::saveTab();Heightfield::preview();";
  1954.                   helpTag = "0";
  1955.                   range = "0.000000 1.000000";
  1956.                   ticks = "5";
  1957.                   value = "0";
  1958.                   TooltipProfile = "GuiToolTipProfile";
  1959.                   tooltip = "A global value used as input to subsequent filters.";
  1960.                };
  1961.                new GuiTextCtrl(general_water_meters) {
  1962.                   profile = "GuiTextProfile";
  1963.                   horizSizing = "right";
  1964.                   vertSizing = "bottom";
  1965.                   position = "109 93";
  1966.                   extent = "42 18";
  1967.                   minExtent = "8 8";
  1968.                   visible = "1";
  1969.                   helpTag = "0";
  1970.                   text = "0 meters";
  1971.                   maxLength = "255";
  1972.                };
  1973.                new GuiButtonCtrl() {
  1974.                   profile = "GuiButtonProfile";
  1975.                   horizSizing = "right";
  1976.                   vertSizing = "bottom";
  1977.                   position = "64 158";
  1978.                   extent = "135 20";
  1979.                   minExtent = "8 8";
  1980.                   visible = "1";
  1981.                   command = "Heightfield::center();";
  1982.                   helpTag = "0";
  1983.                   text = "Center on Camera";
  1984.                   groupNum = "-1";
  1985.                   buttonType = "PushButton";
  1986.                   TooltipProfile = "GuiToolTipProfile";
  1987.                   tooltip = "Sets the map origin to the current location of the camera.";
  1988.                };
  1989.                new GuiTextCtrl(general_centerx) {
  1990.                   profile = "GuiTextProfile";
  1991.                   horizSizing = "right";
  1992.                   vertSizing = "bottom";
  1993.                   position = "6 6";
  1994.                   extent = "8 18";
  1995.                   minExtent = "8 8";
  1996.                   visible = "0";
  1997.                   helpTag = "0";
  1998.                   text = "0";
  1999.                   maxLength = "255";
  2000.                };
  2001.                new GuiTextCtrl(general_centery) {
  2002.                   profile = "GuiTextProfile";
  2003.                   horizSizing = "right";
  2004.                   vertSizing = "bottom";
  2005.                   position = "6 6";
  2006.                   extent = "8 18";
  2007.                   minExtent = "8 8";
  2008.                   visible = "0";
  2009.                   helpTag = "0";
  2010.                   text = "0";
  2011.                   maxLength = "255";
  2012.                };
  2013.                new GuiTextCtrl() {
  2014.                   profile = "GuiTextProfile";
  2015.                   horizSizing = "right";
  2016.                   vertSizing = "bottom";
  2017.                   position = "8 28";
  2018.                   extent = "89 18";
  2019.                   minExtent = "8 8";
  2020.                   visible = "1";
  2021.                   helpTag = "0";
  2022.                   text = "Min Terrain Height:";
  2023.                   TooltipProfile = "GuiToolTipProfile";
  2024.                   tooltip = "Defines the lowest possible point in the map.";
  2025.                   maxLength = "255";
  2026.                };
  2027.                new GuiTextEditSliderCtrl(general_min_height) {
  2028.                   profile = "GuiTextEditProfile";
  2029.                   horizSizing = "right";
  2030.                   vertSizing = "bottom";
  2031.                   position = "108 27";
  2032.                   extent = "64 18";
  2033.                   minExtent = "8 8";
  2034.                   visible = "1";
  2035.                   helpTag = "0";
  2036.                   maxLength = "255";
  2037.                   historySize = "0";
  2038.                   password = "0";
  2039.                   tabComplete = "0";
  2040.                   format = "%1.0f";
  2041.                   range = "0 500";
  2042.                   increment = "1";
  2043.                   TooltipProfile = "GuiToolTipProfile";
  2044.                   tooltip = "Defines the lowest possible point in the map.";
  2045.                };
  2046.                new GuiTextCtrl() {
  2047.                   profile = "GuiTextProfile";
  2048.                   horizSizing = "right";
  2049.                   vertSizing = "bottom";
  2050.                   position = "177 28";
  2051.                   extent = "33 18";
  2052.                   minExtent = "8 8";
  2053.                   visible = "1";
  2054.                   helpTag = "0";
  2055.                   text = "meters";
  2056.                   maxLength = "255";
  2057.                };
  2058.             };
  2059.             new GuiControl(tab_Bitmap) {
  2060.                profile = "GuiDefaultProfile";
  2061.                horizSizing = "right";
  2062.                vertSizing = "bottom";
  2063.                position = "0 0";
  2064.                extent = "261 198";
  2065.                minExtent = "8 8";
  2066.                visible = "0";
  2067.                helpTag = "0";
  2068.  
  2069.                new GuiTextCtrl() {
  2070.                   profile = "GuiTextProfile";
  2071.                   horizSizing = "right";
  2072.                   vertSizing = "bottom";
  2073.                   position = "6 6";
  2074.                   extent = "76 18";
  2075.                   minExtent = "8 8";
  2076.                   visible = "1";
  2077.                   helpTag = "0";
  2078.                   text = "Bitmap settings:";
  2079.                   maxLength = "255";
  2080.                };
  2081.                new GuiTextCtrl() {
  2082.                   profile = "GuiTextProfile";
  2083.                   horizSizing = "right";
  2084.                   vertSizing = "bottom";
  2085.                   position = "10 43";
  2086.                   extent = "45 18";
  2087.                   minExtent = "8 8";
  2088.                   visible = "1";
  2089.                   helpTag = "0";
  2090.                   text = "Filename:";
  2091.                   maxLength = "255";
  2092.                };
  2093.                new GuiTextCtrl(bitmap_name) {
  2094.                   profile = "GuiTextProfile";
  2095.                   horizSizing = "right";
  2096.                   vertSizing = "bottom";
  2097.                   position = "64 43";
  2098.                   extent = "8 18";
  2099.                   minExtent = "8 8";
  2100.                   visible = "1";
  2101.                   helpTag = "0";
  2102.                   maxLength = "255";
  2103.                };
  2104.                new GuiButtonCtrl(bitmap_choose) {
  2105.                   profile = "GuiButtonProfile";
  2106.                   horizSizing = "right";
  2107.                   vertSizing = "bottom";
  2108.                   position = "10 65";
  2109.                   extent = "73 20";
  2110.                   minExtent = "8 8";
  2111.                   visible = "1";
  2112.                   command = "Heightfield::setBitmap();";
  2113.                   helpTag = "0";
  2114.                   text = "Choose...";
  2115.                   groupNum = "-1";
  2116.                   buttonType = "PushButton";
  2117.                };
  2118.             };
  2119.             new GuiControl(tab_Blend) {
  2120.                profile = "GuiDefaultProfile";
  2121.                horizSizing = "right";
  2122.                vertSizing = "bottom";
  2123.                position = "0 0";
  2124.                extent = "261 198";
  2125.                minExtent = "8 8";
  2126.                visible = "0";
  2127.                helpTag = "0";
  2128.  
  2129.                new GuiPopUpMenuCtrl(blend_option) {
  2130.                   profile = "GuiPopUpMenuProfile";
  2131.                   horizSizing = "right";
  2132.                   vertSizing = "bottom";
  2133.                   position = "64 118";
  2134.                   extent = "82 20";
  2135.                   minExtent = "8 8";
  2136.                   visible = "1";
  2137.                   command = "Heightfield::saveTab();Heightfield::preview($selectedOperation);";
  2138.                   helpTag = "0";
  2139.                   text = "Add";
  2140.                   maxLength = "255";
  2141.                   maxPopupHeight = "200";
  2142.                };
  2143.                new GuiTextCtrl() {
  2144.                   profile = "GuiTextProfile";
  2145.                   horizSizing = "right";
  2146.                   vertSizing = "bottom";
  2147.                   position = "6 6";
  2148.                   extent = "71 18";
  2149.                   minExtent = "8 8";
  2150.                   visible = "1";
  2151.                   helpTag = "0";
  2152.                   text = "Blend settings:";
  2153.                   maxLength = "255";
  2154.                };
  2155.                new GuiTextCtrl() {
  2156.                   profile = "GuiTextProfile";
  2157.                   horizSizing = "right";
  2158.                   vertSizing = "bottom";
  2159.                   position = "4 31";
  2160.                   extent = "34 18";
  2161.                   minExtent = "8 8";
  2162.                   visible = "1";
  2163.                   helpTag = "0";
  2164.                   text = "Factor:";
  2165.                   maxLength = "255";
  2166.                   tooltipprofile = "GuiToolTipProfile";
  2167.                   tooltip = "Relative amount by which to apply this blend.";
  2168.                };
  2169.                new GuiSliderCtrl(blend_factor) {
  2170.                   profile = "GuiTextProfile";
  2171.                   horizSizing = "right";
  2172.                   vertSizing = "bottom";
  2173.                   position = "49 29";
  2174.                   extent = "200 30";
  2175.                   minExtent = "8 8";
  2176.                   visible = "1";
  2177.                   variable = "value";
  2178.                   command = "Heightfield::saveTab();Heightfield::preview($selectedOperation);";
  2179.                   helpTag = "0";
  2180.                   range = "0.000000 1.000000";
  2181.                   ticks = "5";
  2182.                   value = "0.584211";
  2183.                   tooltipprofile = "GuiToolTipProfile";
  2184.                   tooltip = "Relative amount by which to apply this blend.";
  2185.                };
  2186.                new GuiTextCtrl() {
  2187.                   profile = "GuiTextProfile";
  2188.                   horizSizing = "right";
  2189.                   vertSizing = "bottom";
  2190.                   position = "6 64";
  2191.                   extent = "49 18";
  2192.                   minExtent = "8 8";
  2193.                   visible = "1";
  2194.                   helpTag = "0";
  2195.                   text = "Source A:";
  2196.                   maxLength = "255";
  2197.                };
  2198.                new GuiTextCtrl() {
  2199.                   profile = "GuiTextProfile";
  2200.                   horizSizing = "right";
  2201.                   vertSizing = "bottom";
  2202.                   position = "23 156";
  2203.                   extent = "205 18";
  2204.                   minExtent = "8 8";
  2205.                   visible = "1";
  2206.                   helpTag = "0";
  2207.                   text = "result = (A*factor) operation (B*(1-factor))";
  2208.                   maxLength = "255";
  2209.                };
  2210.                new GuiTextCtrl() {
  2211.                   profile = "GuiTextProfile";
  2212.                   horizSizing = "right";
  2213.                   vertSizing = "bottom";
  2214.                   position = "7 91";
  2215.                   extent = "48 18";
  2216.                   minExtent = "8 8";
  2217.                   visible = "1";
  2218.                   helpTag = "0";
  2219.                   text = "Source B:";
  2220.                   maxLength = "255";
  2221.                };
  2222.                new GuiTextEditCtrl(blend_srcB) {
  2223.                   profile = "GuiTextEditProfile";
  2224.                   horizSizing = "right";
  2225.                   vertSizing = "bottom";
  2226.                   position = "64 89";
  2227.                   extent = "33 18";
  2228.                   minExtent = "8 8";
  2229.                   visible = "1";
  2230.                   helpTag = "0";
  2231.                   text = "1";
  2232.                   maxLength = "255";
  2233.                   historySize = "5";
  2234.                   password = "0";
  2235.                   tabComplete = "0";
  2236.                };
  2237.                new GuiTextCtrl(blend_srcA) {
  2238.                   profile = "GuiTextProfile";
  2239.                   horizSizing = "right";
  2240.                   vertSizing = "bottom";
  2241.                   position = "64 65";
  2242.                   extent = "92 18";
  2243.                   minExtent = "8 8";
  2244.                   visible = "1";
  2245.                   helpTag = "0";
  2246.                   text = "Previous Operation";
  2247.                   maxLength = "255";
  2248.                };
  2249.                new GuiTextCtrl() {
  2250.                   profile = "GuiTextProfile";
  2251.                   horizSizing = "right";
  2252.                   vertSizing = "bottom";
  2253.                   position = "5 118";
  2254.                   extent = "50 18";
  2255.                   minExtent = "8 8";
  2256.                   visible = "1";
  2257.                   helpTag = "0";
  2258.                   text = "Operation:";
  2259.                   maxLength = "255";
  2260.                };
  2261.             };
  2262.             new GuiControl() {
  2263.                profile = "GuiDefaultProfile";
  2264.                horizSizing = "right";
  2265.                vertSizing = "height";
  2266.                position = "0 250";
  2267.                extent = "275 210";
  2268.                minExtent = "8 8";
  2269.                visible = "1";
  2270.                helpTag = "0";
  2271.  
  2272.                new GuiPopUpMenuCtrl(Heightfield_options) {
  2273.                   profile = "GuiPopUpMenuProfile";
  2274.                   horizSizing = "right";
  2275.                   vertSizing = "bottom";
  2276.                   position = "4 3";
  2277.                   extent = "199 20";
  2278.                   minExtent = "8 8";
  2279.                   visible = "1";
  2280.                   helpTag = "0";
  2281.                   text = "Options";
  2282.                   maxLength = "255";
  2283.                   maxPopupHeight = "200";
  2284.                      setText = "false";
  2285.                };
  2286.                new GuiButtonCtrl() {
  2287.                   profile = "GuiButtonProfile";
  2288.                   horizSizing = "right";
  2289.                   vertSizing = "bottom";
  2290.                   position = "205 3";
  2291.                   extent = "53 20";
  2292.                   minExtent = "8 8";
  2293.                   visible = "1";
  2294.                   command = "Heightfield::onDelete();";
  2295.                   helpTag = "0";
  2296.                   text = "Delete";
  2297.                   groupNum = "-1";
  2298.                   buttonType = "PushButton";
  2299.                };
  2300.                new GuiScrollCtrl() {
  2301.                   profile = "EditorScrollProfile";
  2302.                   horizSizing = "width";
  2303.                   vertSizing = "height";
  2304.                   position = "5 27";
  2305.                   extent = "261 176";
  2306.                   minExtent = "8 8";
  2307.                   visible = "1";
  2308.                   helpTag = "0";
  2309.                   willFirstRespond = "1";
  2310.                   hScrollBar = "alwaysOff";
  2311.                   vScrollBar = "dynamic";
  2312.                   constantThumbHeight = "1";
  2313.                   childMargin = "0 0";
  2314.  
  2315.                   new GuiTextListCtrl(Heightfield_operation) {
  2316.                      profile = "GuiTextListProfile";
  2317.                      horizSizing = "right";
  2318.                      vertSizing = "bottom";
  2319.                      position = "2 2";
  2320.                      extent = "257 16";
  2321.                      minExtent = "8 8";
  2322.                      visible = "1";
  2323.                      helpTag = "0";
  2324.                      enumerate = "0";
  2325.                      resizeCell = "1";
  2326.                      columns = "1";
  2327.                      fitParentWidth = "1";
  2328.                      clipColumnText = "0";
  2329.                   };
  2330.                };
  2331.             };
  2332.             new GuiButtonCtrl() {
  2333.                profile = "GuiButtonProfile";
  2334.                horizSizing = "right";
  2335.                vertSizing = "bottom";
  2336.                position = "98 229";
  2337.                extent = "80 20";
  2338.                minExtent = "8 8";
  2339.                visible = "1";
  2340.                command = "Heightfield::apply();";
  2341.                helpTag = "0";
  2342.                text = "Apply";
  2343.                tooltipprofile = "GuiToolTipProfile";
  2344.                tooltip = "Don't forget to hit apply after making changes!";
  2345.                groupNum = "-1";
  2346.                buttonType = "PushButton";
  2347.             };
  2348.          };
  2349.          new GuiTerrPreviewCtrl(HeightfieldPreview) {
  2350.             profile = "GuiDefaultProfile";
  2351.             horizSizing = "right";
  2352.             vertSizing = "top";
  2353.             position = "4 198";
  2354.             extent = "256 256";
  2355.             minExtent = "8 8";
  2356.             visible = "1";
  2357.             helpTag = "0";
  2358.          };
  2359.       };
  2360.       new GuiControl(ETexture) {
  2361.          profile = "GuiModelessDialogProfile";
  2362.          horizSizing = "width";
  2363.          vertSizing = "height";
  2364.          position = "0 0";
  2365.          extent = "640 458";
  2366.          minExtent = "8 8";
  2367.          visible = "0";
  2368.          helpTag = "0";
  2369.  
  2370.          new GuiTerrPreviewCtrl(TexturePreview) {
  2371.             profile = "GuiDefaultProfile";
  2372.             horizSizing = "right";
  2373.             vertSizing = "top";
  2374.             position = "4 198";
  2375.             extent = "256 256";
  2376.             minExtent = "8 8";
  2377.             visible = "1";
  2378.             helpTag = "0";
  2379.          };
  2380.          new GuiControl(TextureTabParent) {
  2381.             profile = "EditorScrollProfile";
  2382.             horizSizing = "left";
  2383.             vertSizing = "height";
  2384.             position = "370 0";
  2385.             extent = "270 458";
  2386.             minExtent = "8 8";
  2387.             visible = "1";
  2388.             helpTag = "0";
  2389.                childMargin = "0 0";
  2390.                constantThumbHeight = "1";
  2391.                willFirstRespond = "1";
  2392.  
  2393.             new GuiControl(tab_DistortMask) {
  2394.                profile = "GuiDefaultProfile";
  2395.                horizSizing = "right";
  2396.                vertSizing = "bottom";
  2397.                position = "2 1";
  2398.                extent = "261 202";
  2399.                minExtent = "8 8";
  2400.                visible = "0";
  2401.                helpTag = "0";
  2402.  
  2403.                new GuiTextCtrl() {
  2404.                   profile = "GuiTextProfile";
  2405.                   horizSizing = "right";
  2406.                   vertSizing = "bottom";
  2407.                   position = "4 1";
  2408.                   extent = "126 18";
  2409.                   minExtent = "8 8";
  2410.                   visible = "1";
  2411.                   helpTag = "0";
  2412.                   text = "Fractal Distortion Settings:";
  2413.                   maxLength = "255";
  2414.                };
  2415.                new GuiButtonCtrl() {
  2416.                   profile = "GuiButtonProfile";
  2417.                   horizSizing = "right";
  2418.                   vertSizing = "bottom";
  2419.                   position = "166 97";
  2420.                   extent = "77 20";
  2421.                   minExtent = "8 8";
  2422.                   visible = "1";
  2423.                   command = "dmask_seed.setValue(terraFormer.generateSeed());Texture::saveOperation();Texture::previewOperation();";
  2424.                   helpTag = "0";
  2425.                   text = "New Seed";
  2426.                   groupNum = "-1";
  2427.                   buttonType = "PushButton";
  2428.                };
  2429.                new GuiTextEditCtrl(dmask_seed) {
  2430.                   profile = "GuiTextEditProfile";
  2431.                   horizSizing = "right";
  2432.                   vertSizing = "bottom";
  2433.                   position = "166 71";
  2434.                   extent = "78 18";
  2435.                   minExtent = "8 8";
  2436.                   visible = "1";
  2437.                   helpTag = "0";
  2438.                   text = "0";
  2439.                   maxLength = "255";
  2440.                   historySize = "5";
  2441.                   password = "0";
  2442.                   tabComplete = "0";
  2443.                };
  2444.                new GuiTextEditSliderCtrl(dmask_rough) {
  2445.                   profile = "GuiTextEditProfile";
  2446.                   horizSizing = "right";
  2447.                   vertSizing = "bottom";
  2448.                   position = "166 47";
  2449.                   extent = "78 18";
  2450.                   minExtent = "8 8";
  2451.                   visible = "1";
  2452.                   helpTag = "0";
  2453.                   maxLength = "255";
  2454.                   historySize = "0";
  2455.                   password = "0";
  2456.                   tabComplete = "0";
  2457.                   format = "%0.3f";
  2458.                   range = "0 1";
  2459.                   increment = "0.001";
  2460.                };
  2461.                new GuiTextEditSliderCtrl(dmask_interval) {
  2462.                   profile = "GuiTextEditProfile";
  2463.                   horizSizing = "right";
  2464.                   vertSizing = "bottom";
  2465.                   position = "166 23";
  2466.                   extent = "78 18";
  2467.                   minExtent = "8 8";
  2468.                   visible = "1";
  2469.                   helpTag = "0";
  2470.                   maxLength = "255";
  2471.                   historySize = "0";
  2472.                   password = "0";
  2473.                   tabComplete = "0";
  2474.                   format = "%1.0f";
  2475.                   range = "3 36";
  2476.                   increment = "1";
  2477.                };
  2478.                new GuiTextCtrl() {
  2479.                   profile = "GuiTextProfile";
  2480.                   horizSizing = "right";
  2481.                   vertSizing = "bottom";
  2482.                   position = "90 23";
  2483.                   extent = "71 18";
  2484.                   minExtent = "8 8";
  2485.                   visible = "1";
  2486.                   helpTag = "0";
  2487.                   text = "Hill Frequency:";
  2488.                   maxLength = "255";
  2489.                   tooltipprofile = "GuiToolTipProfile";
  2490.                   tooltip = "Indirectly determines number of hills. Higher values create more hills.";
  2491.                };
  2492.                new GuiTextCtrl() {
  2493.                   profile = "GuiTextProfile";
  2494.                   horizSizing = "right";
  2495.                   vertSizing = "bottom";
  2496.                   position = "103 47";
  2497.                   extent = "58 18";
  2498.                   minExtent = "8 8";
  2499.                   visible = "1";
  2500.                   helpTag = "0";
  2501.                   text = "Roughness:";
  2502.                   maxLength = "255";
  2503.                   tooltipprofile = "GuiToolTipProfile";
  2504.                   tooltip = "Determines roundness of hills. Lower values = more rounded hills.";
  2505.                };
  2506.                new GuiTextCtrl() {
  2507.                   profile = "GuiTextProfile";
  2508.                   horizSizing = "right";
  2509.                   vertSizing = "bottom";
  2510.                   position = "91 71";
  2511.                   extent = "70 18";
  2512.                   minExtent = "8 8";
  2513.                   visible = "1";
  2514.                   helpTag = "0";
  2515.                   text = "Random Seed:";
  2516.                   maxLength = "255";
  2517.                };
  2518.                new GuiFilterCtrl(dmask_filter) {
  2519.                   profile = "GuiDefaultProfile";
  2520.                   horizSizing = "right";
  2521.                   vertSizing = "bottom";
  2522.                   position = "12 96";
  2523.                   extent = "143 93";
  2524.                   minExtent = "8 8";
  2525.                   visible = "1";
  2526.                   command = "Texture::saveOperation();Texture::previewOperation();";
  2527.                   helpTag = "0";
  2528.                   controlPoints = "7";
  2529.                   filter = "0.000000 0.166667 0.333333 0.500000 0.666667 0.833333 1.000000";
  2530.                };
  2531.                new GuiTextEditSliderCtrl() {
  2532.                   profile = "GuiTextEditProfile";
  2533.                   horizSizing = "right";
  2534.                   vertSizing = "bottom";
  2535.                   position = "173 165";
  2536.                   extent = "64 18";
  2537.                   minExtent = "8 8";
  2538.                   visible = "1";
  2539.                   variable = "dmask_filter.controlPoints";
  2540.                   command = "dmask_filter.controlPoints = $ThisControl.getValue();Texture::saveOperation();Texture::previewOperation();";
  2541.                   helpTag = "0";
  2542.                   maxLength = "255";
  2543.                   historySize = "0";
  2544.                   password = "0";
  2545.                   tabComplete = "0";
  2546.                   format = "%3.0f";
  2547.                   range = "2 20";
  2548.                   increment = "1";
  2549.                };
  2550.                new GuiTextCtrl() {
  2551.                   profile = "GuiTextProfile";
  2552.                   horizSizing = "right";
  2553.                   vertSizing = "bottom";
  2554.                   position = "173 147";
  2555.                   extent = "69 18";
  2556.                   minExtent = "8 8";
  2557.                   visible = "1";
  2558.                   helpTag = "0";
  2559.                   text = "Control Points:";
  2560.                   maxLength = "255";
  2561.                };
  2562.             };
  2563.             new GuiControl(tab_FractalMask) {
  2564.                profile = "GuiDefaultProfile";
  2565.                horizSizing = "right";
  2566.                vertSizing = "bottom";
  2567.                position = "2 0";
  2568.                extent = "261 202";
  2569.                minExtent = "8 8";
  2570.                visible = "0";
  2571.                helpTag = "0";
  2572.  
  2573.                new GuiTextCtrl() {
  2574.                   profile = "GuiTextProfile";
  2575.                   horizSizing = "right";
  2576.                   vertSizing = "bottom";
  2577.                   position = "4 1";
  2578.                   extent = "106 18";
  2579.                   minExtent = "8 8";
  2580.                   visible = "1";
  2581.                   helpTag = "0";
  2582.                   text = "Fractal Mask Settings:";
  2583.                   maxLength = "255";
  2584.                };
  2585.                new GuiButtonCtrl() {
  2586.                   profile = "GuiButtonProfile";
  2587.                   horizSizing = "right";
  2588.                   vertSizing = "bottom";
  2589.                   position = "168 96";
  2590.                   extent = "77 20";
  2591.                   minExtent = "8 8";
  2592.                   visible = "1";
  2593.                   command = "fBmmask_seed.setValue(terraFormer.generateSeed());Texture::saveOperation();Texture::previewOperation();";
  2594.                   helpTag = "0";
  2595.                   text = "New Seed";
  2596.                   groupNum = "-1";
  2597.                   buttonType = "PushButton";
  2598.                };
  2599.                new GuiTextEditCtrl(fBmmask_seed) {
  2600.                   profile = "GuiTextEditProfile";
  2601.                   horizSizing = "right";
  2602.                   vertSizing = "bottom";
  2603.                   position = "168 70";
  2604.                   extent = "78 18";
  2605.                   minExtent = "8 8";
  2606.                   visible = "1";
  2607.                   helpTag = "0";
  2608.                   text = "0";
  2609.                   maxLength = "255";
  2610.                   historySize = "5";
  2611.                   password = "0";
  2612.                   tabComplete = "0";
  2613.                };
  2614.                new GuiTextEditSliderCtrl(fbmmask_rough) {
  2615.                   profile = "GuiTextEditProfile";
  2616.                   horizSizing = "right";
  2617.                   vertSizing = "bottom";
  2618.                   position = "168 46";
  2619.                   extent = "78 18";
  2620.                   minExtent = "8 8";
  2621.                   visible = "1";
  2622.                   helpTag = "0";
  2623.                   maxLength = "255";
  2624.                   historySize = "0";
  2625.                   password = "0";
  2626.                   tabComplete = "0";
  2627.                   format = "%0.3f";
  2628.                   range = "0 1";
  2629.                   increment = "0.001";
  2630.                };
  2631.                new GuiTextEditSliderCtrl(fbmmask_interval) {
  2632.                   profile = "GuiTextEditProfile";
  2633.                   horizSizing = "right";
  2634.                   vertSizing = "bottom";
  2635.                   position = "168 22";
  2636.                   extent = "78 18";
  2637.                   minExtent = "8 8";
  2638.                   visible = "1";
  2639.                   helpTag = "0";
  2640.                   maxLength = "255";
  2641.                   historySize = "0";
  2642.                   password = "0";
  2643.                   tabComplete = "0";
  2644.                   format = "%1.0f";
  2645.                   range = "3 36";
  2646.                   increment = "1";
  2647.                };
  2648.                new GuiTextCtrl() {
  2649.                   profile = "GuiTextProfile";
  2650.                   horizSizing = "right";
  2651.                   vertSizing = "bottom";
  2652.                   position = "92 22";
  2653.                   extent = "71 18";
  2654.                   minExtent = "8 8";
  2655.                   visible = "1";
  2656.                   helpTag = "0";
  2657.                   text = "Hill Frequency:";
  2658.                   maxLength = "255";
  2659.                };
  2660.                new GuiTextCtrl() {
  2661.                   profile = "GuiTextProfile";
  2662.                   horizSizing = "right";
  2663.                   vertSizing = "bottom";
  2664.                   position = "105 46";
  2665.                   extent = "58 18";
  2666.                   minExtent = "8 8";
  2667.                   visible = "1";
  2668.                   helpTag = "0";
  2669.                   text = "Roughness:";
  2670.                   maxLength = "255";
  2671.                };
  2672.                new GuiTextCtrl() {
  2673.                   profile = "GuiTextProfile";
  2674.                   horizSizing = "right";
  2675.                   vertSizing = "bottom";
  2676.                   position = "93 70";
  2677.                   extent = "70 18";
  2678.                   minExtent = "8 8";
  2679.                   visible = "1";
  2680.                   helpTag = "0";
  2681.                   text = "Random Seed:";
  2682.                   maxLength = "255";
  2683.                };
  2684.                new GuiFilterCtrl(fBmmask_filter) {
  2685.                   profile = "GuiDefaultProfile";
  2686.                   horizSizing = "right";
  2687.                   vertSizing = "bottom";
  2688.                   position = "9 94";
  2689.                   extent = "147 98";
  2690.                   minExtent = "8 8";
  2691.                   visible = "1";
  2692.                   command = "Texture::saveOperation();Texture::previewOperation();";
  2693.                   helpTag = "0";
  2694.                   controlPoints = "7";
  2695.                   filter = "0.000000 0.166670 0.333330 0.500000 0.666670 0.833330 1.000000";
  2696.                };
  2697.                new GuiCheckBoxCtrl(fBmDistort) {
  2698.                   profile = "GuiCheckBoxProfile";
  2699.                   horizSizing = "right";
  2700.                   vertSizing = "bottom";
  2701.                   position = "166 122";
  2702.                   extent = "82 20";
  2703.                   minExtent = "8 8";
  2704.                   visible = "1";
  2705.                   command = "Texture::saveOperation();Texture::previewOperation();";
  2706.                   helpTag = "0";
  2707.                   text = "Use Distortion";
  2708.                   groupNum = "-1";
  2709.                   buttonType = "ToggleButton";
  2710.                };
  2711.                new GuiTextEditSliderCtrl() {
  2712.                   profile = "GuiTextEditProfile";
  2713.                   horizSizing = "right";
  2714.                   vertSizing = "bottom";
  2715.                   position = "168 174";
  2716.                   extent = "64 18";
  2717.                   minExtent = "8 8";
  2718.                   visible = "1";
  2719.                   variable = "fBmmask_filter.controlPoints";
  2720.                   command = "fBmmask_filter.controlPoints = $ThisControl.getValue();Texture::saveOperation();Texture::previewOperation();";
  2721.                   helpTag = "0";
  2722.                   maxLength = "255";
  2723.                   historySize = "0";
  2724.                   password = "0";
  2725.                   tabComplete = "0";
  2726.                   format = "%3.0f";
  2727.                   range = "2 20";
  2728.                   increment = "1";
  2729.                };
  2730.                new GuiTextCtrl() {
  2731.                   profile = "GuiTextProfile";
  2732.                   horizSizing = "right";
  2733.                   vertSizing = "bottom";
  2734.                   position = "168 155";
  2735.                   extent = "69 18";
  2736.                   minExtent = "8 8";
  2737.                   visible = "1";
  2738.                   helpTag = "0";
  2739.                   text = "Control Points:";
  2740.                   maxLength = "255";
  2741.                };
  2742.             };
  2743.             new GuiControl(tab_HeightMask) {
  2744.                profile = "GuiDefaultProfile";
  2745.                horizSizing = "right";
  2746.                vertSizing = "bottom";
  2747.                position = "2 0";
  2748.                extent = "261 200";
  2749.                minExtent = "8 8";
  2750.                visible = "0";
  2751.                helpTag = "0";
  2752.  
  2753.                new GuiTextCtrl() {
  2754.                   profile = "GuiTextProfile";
  2755.                   horizSizing = "right";
  2756.                   vertSizing = "bottom";
  2757.                   position = "4 1";
  2758.                   extent = "103 18";
  2759.                   minExtent = "8 8";
  2760.                   visible = "1";
  2761.                   helpTag = "0";
  2762.                   text = "Height Mask Settings:";
  2763.                   maxLength = "255";
  2764.                };
  2765.                new GuiTextCtrl() {
  2766.                   profile = "GuiTextProfile";
  2767.                   horizSizing = "right";
  2768.                   vertSizing = "bottom";
  2769.                   position = "4 26";
  2770.                   extent = "26 18";
  2771.                   minExtent = "8 8";
  2772.                   visible = "1";
  2773.                   helpTag = "0";
  2774.                   text = "Filter:";
  2775.                   maxLength = "255";
  2776.                };
  2777.                new GuiFilterCtrl(TextureHeightFilter) {
  2778.                   profile = "GuiDefaultProfile";
  2779.                   horizSizing = "right";
  2780.                   vertSizing = "bottom";
  2781.                   position = "46 26";
  2782.                   extent = "130 130";
  2783.                   minExtent = "8 8";
  2784.                   visible = "1";
  2785.                   command = "Texture::saveOperation();Texture::previewOperation();";
  2786.                   helpTag = "0";
  2787.                   controlPoints = "6";
  2788.                   filter = "0.000000 0.200000 0.400000 0.600000 0.800000 1.000000";
  2789.                };
  2790.                new GuiCheckBoxCtrl(heightDistort) {
  2791.                   profile = "GuiCheckBoxProfile";
  2792.                   horizSizing = "right";
  2793.                   vertSizing = "bottom";
  2794.                   position = "45 165";
  2795.                   extent = "129 20";
  2796.                   minExtent = "8 8";
  2797.                   visible = "1";
  2798.                   command = "Texture::saveOperation();Texture::previewOperation();";
  2799.                   helpTag = "0";
  2800.                   text = "Use Fractal Distortion";
  2801.                   groupNum = "-1";
  2802.                   buttonType = "ToggleButton";
  2803.                };
  2804.                new GuiTextEditSliderCtrl() {
  2805.                   profile = "GuiTextEditProfile";
  2806.                   horizSizing = "right";
  2807.                   vertSizing = "bottom";
  2808.                   position = "185 134";
  2809.                   extent = "64 18";
  2810.                   minExtent = "8 8";
  2811.                   visible = "1";
  2812.                   variable = "TextureHeightFilter.controlPoints";
  2813.                   command = "TextureHeightFilter.controlPoints = $ThisControl.getValue();Texture::saveOperation();Texture::previewOperation();";
  2814.                   helpTag = "0";
  2815.                   maxLength = "255";
  2816.                   historySize = "0";
  2817.                   password = "0";
  2818.                   tabComplete = "0";
  2819.                   format = "%3.0f";
  2820.                   range = "2 20";
  2821.                   increment = "1";
  2822.                };
  2823.                new GuiTextCtrl() {
  2824.                   profile = "GuiTextProfile";
  2825.                   horizSizing = "right";
  2826.                   vertSizing = "bottom";
  2827.                   position = "185 115";
  2828.                   extent = "69 18";
  2829.                   minExtent = "8 8";
  2830.                   visible = "1";
  2831.                   helpTag = "0";
  2832.                   text = "Control Points:";
  2833.                   maxLength = "255";
  2834.                };
  2835.             };
  2836.             new GuiControl(tab_SlopeMask) {
  2837.                profile = "GuiDefaultProfile";
  2838.                horizSizing = "right";
  2839.                vertSizing = "bottom";
  2840.                position = "2 0";
  2841.                extent = "261 200";
  2842.                minExtent = "8 8";
  2843.                visible = "0";
  2844.                helpTag = "0";
  2845.  
  2846.                new GuiTextCtrl() {
  2847.                   profile = "GuiTextProfile";
  2848.                   horizSizing = "right";
  2849.                   vertSizing = "bottom";
  2850.                   position = "4 1";
  2851.                   extent = "100 18";
  2852.                   minExtent = "8 8";
  2853.                   visible = "1";
  2854.                   helpTag = "0";
  2855.                   text = "Slope Mask Settings:";
  2856.                   maxLength = "255";
  2857.                };
  2858.                new GuiTextCtrl() {
  2859.                   profile = "GuiTextProfile";
  2860.                   horizSizing = "right";
  2861.                   vertSizing = "bottom";
  2862.                   position = "4 26";
  2863.                   extent = "26 18";
  2864.                   minExtent = "8 8";
  2865.                   visible = "1";
  2866.                   helpTag = "0";
  2867.                   text = "Filter:";
  2868.                   maxLength = "255";
  2869.                };
  2870.                new GuiFilterCtrl(TextureSlopeFilter) {
  2871.                   profile = "GuiDefaultProfile";
  2872.                   horizSizing = "right";
  2873.                   vertSizing = "bottom";
  2874.                   position = "45 27";
  2875.                   extent = "130 130";
  2876.                   minExtent = "8 8";
  2877.                   visible = "1";
  2878.                   command = "Texture::saveOperation();Texture::previewOperation();";
  2879.                   helpTag = "0";
  2880.                   controlPoints = "7";
  2881.                   filter = "0.000000 0.166667 0.333333 0.500000 0.666667 0.833333 1.000000";
  2882.                };
  2883.                new GuiCheckBoxCtrl(slopeDistort) {
  2884.                   profile = "GuiCheckBoxProfile";
  2885.                   horizSizing = "right";
  2886.                   vertSizing = "bottom";
  2887.                   position = "44 166";
  2888.                   extent = "129 20";
  2889.                   minExtent = "8 8";
  2890.                   visible = "1";
  2891.                   command = "Texture::saveOperation();Texture::previewOperation();";
  2892.                   helpTag = "0";
  2893.                   text = "Use Fractal Distortion";
  2894.                   groupNum = "-1";
  2895.                   buttonType = "ToggleButton";
  2896.                };
  2897.                new GuiTextEditSliderCtrl() {
  2898.                   profile = "GuiTextEditProfile";
  2899.                   horizSizing = "right";
  2900.                   vertSizing = "bottom";
  2901.                   position = "185 134";
  2902.                   extent = "64 18";
  2903.                   minExtent = "8 8";
  2904.                   visible = "1";
  2905.                   variable = "TextureSlopeFilter.controlPoints";
  2906.                   command = "TextureSlopeFilter.controlPoints = $ThisControl.getValue();Texture::saveOperation();Texture::previewOperation();";
  2907.                   helpTag = "0";
  2908.                   maxLength = "255";
  2909.                   historySize = "0";
  2910.                   password = "0";
  2911.                   tabComplete = "0";
  2912.                   format = "%3.0f";
  2913.                   range = "2 20";
  2914.                   increment = "1";
  2915.                };
  2916.                new GuiTextCtrl() {
  2917.                   profile = "GuiTextProfile";
  2918.                   horizSizing = "right";
  2919.                   vertSizing = "bottom";
  2920.                   position = "185 115";
  2921.                   extent = "69 18";
  2922.                   minExtent = "8 8";
  2923.                   visible = "1";
  2924.                   helpTag = "0";
  2925.                   text = "Control Points:";
  2926.                   maxLength = "255";
  2927.                };
  2928.             };
  2929.             new GuiControl(tab_WaterMask) {
  2930.                profile = "GuiDefaultProfile";
  2931.                horizSizing = "right";
  2932.                vertSizing = "bottom";
  2933.                position = "2 0";
  2934.                extent = "261 200";
  2935.                minExtent = "8 8";
  2936.                visible = "0";
  2937.                helpTag = "0";
  2938.  
  2939.                new GuiTextCtrl() {
  2940.                   profile = "GuiTextProfile";
  2941.                   horizSizing = "right";
  2942.                   vertSizing = "bottom";
  2943.                   position = "4 1";
  2944.                   extent = "131 18";
  2945.                   minExtent = "8 8";
  2946.                   visible = "1";
  2947.                   helpTag = "0";
  2948.                   text = "Water Level Mask Settings:";
  2949.                   maxLength = "255";
  2950.                };
  2951.                new GuiCheckBoxCtrl(waterDistort) {
  2952.                   profile = "GuiCheckBoxProfile";
  2953.                   horizSizing = "right";
  2954.                   vertSizing = "bottom";
  2955.                   position = "63 165";
  2956.                   extent = "129 20";
  2957.                   minExtent = "8 8";
  2958.                   visible = "1";
  2959.                   command = "Texture::saveOperation();Texture::previewOperation();";
  2960.                   helpTag = "0";
  2961.                   text = "Use Fractal Distortion";
  2962.                   groupNum = "-1";
  2963.                   buttonType = "ToggleButton";
  2964.                };
  2965.             };
  2966.          };
  2967.          new GuiControl() {
  2968.             profile = "GuiDefaultProfile";
  2969.             horizSizing = "left";
  2970.             vertSizing = "bottom";
  2971.             position = "371 249";
  2972.             extent = "267 96";
  2973.             minExtent = "8 8";
  2974.             visible = "1";
  2975.             helpTag = "0";
  2976.  
  2977.             new GuiScrollCtrl() {
  2978.                profile = "EditorScrollProfile";
  2979.                horizSizing = "width";
  2980.                vertSizing = "bottom";
  2981.                position = "4 27";
  2982.                extent = "261 65";
  2983.                minExtent = "8 8";
  2984.                visible = "1";
  2985.                helpTag = "0";
  2986.                willFirstRespond = "1";
  2987.                hScrollBar = "alwaysOff";
  2988.                vScrollBar = "dynamic";
  2989.                constantThumbHeight = "1";
  2990.                childMargin = "0 0";
  2991.  
  2992.                new GuiTextListCtrl(Texture_material) {
  2993.                   profile = "GuiButtonProfile";
  2994.                   horizSizing = "right";
  2995.                   vertSizing = "bottom";
  2996.                   position = "2 2";
  2997.                   extent = "257 8";
  2998.                   minExtent = "8 8";
  2999.                   visible = "1";
  3000.                   helpTag = "0";
  3001.                   enumerate = "0";
  3002.                   resizeCell = "1";
  3003.                   columns = "1";
  3004.                   fitParentWidth = "1";
  3005.                   clipColumnText = "0";
  3006.                };
  3007.             };
  3008.             new GuiButtonCtrl() {
  3009.                profile = "GuiButtonProfile";
  3010.                horizSizing = "right";
  3011.                vertSizing = "bottom";
  3012.                position = "205 3";
  3013.                extent = "53 20";
  3014.                minExtent = "8 8";
  3015.                visible = "1";
  3016.                command = "Texture::deleteMaterial();";
  3017.                helpTag = "0";
  3018.                text = "Delete";
  3019.                groupNum = "-1";
  3020.                buttonType = "PushButton";
  3021.             };
  3022.             new GuiButtonCtrl() {
  3023.                profile = "GuiButtonProfile";
  3024.                horizSizing = "right";
  3025.                vertSizing = "bottom";
  3026.                position = "5 3";
  3027.                extent = "78 20";
  3028.                minExtent = "8 8";
  3029.                visible = "1";
  3030.                command = "Texture::addMaterialTexture();";
  3031.                helpTag = "0";
  3032.                text = "Add Material...";
  3033.                groupNum = "-1";
  3034.                buttonType = "PushButton";
  3035.             };
  3036.          };
  3037.          new GuiControl() {
  3038.             profile = "GuiDefaultProfile";
  3039.             horizSizing = "left";
  3040.             vertSizing = "height";
  3041.             position = "370 349";
  3042.             extent = "270 112";
  3043.             minExtent = "8 8";
  3044.             visible = "1";
  3045.             helpTag = "0";
  3046.  
  3047.             new GuiPopUpMenuCtrl(Texture_operation_menu) {
  3048.                profile = "GuiPopUpMenuProfile";
  3049.                horizSizing = "right";
  3050.                vertSizing = "bottom";
  3051.                position = "4 3";
  3052.                extent = "199 20";
  3053.                minExtent = "8 8";
  3054.                visible = "1";
  3055.                helpTag = "0";
  3056.                text = "Options";
  3057.                maxLength = "255";
  3058.                maxPopupHeight = "200";
  3059.                   setText = "false";
  3060.             };
  3061.             new GuiButtonCtrl() {
  3062.                profile = "GuiButtonProfile";
  3063.                horizSizing = "right";
  3064.                vertSizing = "bottom";
  3065.                position = "205 3";
  3066.                extent = "53 20";
  3067.                minExtent = "8 8";
  3068.                visible = "1";
  3069.                command = "Texture::deleteOperation();";
  3070.                helpTag = "0";
  3071.                text = "Delete";
  3072.                groupNum = "-1";
  3073.                buttonType = "PushButton";
  3074.             };
  3075.             new GuiScrollCtrl() {
  3076.                profile = "EditorScrollProfile";
  3077.                horizSizing = "width";
  3078.                vertSizing = "height";
  3079.                position = "5 27";
  3080.                extent = "261 77";
  3081.                minExtent = "8 8";
  3082.                visible = "1";
  3083.                helpTag = "0";
  3084.                willFirstRespond = "1";
  3085.                hScrollBar = "alwaysOff";
  3086.                vScrollBar = "dynamic";
  3087.                constantThumbHeight = "1";
  3088.                childMargin = "0 0";
  3089.  
  3090.                new GuiTextListCtrl(Texture_operation) {
  3091.                   profile = "GuiButtonProfile";
  3092.                   horizSizing = "right";
  3093.                   vertSizing = "bottom";
  3094.                   position = "2 2";
  3095.                   extent = "257 8";
  3096.                   minExtent = "8 8";
  3097.                   visible = "1";
  3098.                   helpTag = "0";
  3099.                   enumerate = "0";
  3100.                   resizeCell = "1";
  3101.                   columns = "1";
  3102.                   fitParentWidth = "1";
  3103.                   clipColumnText = "0";
  3104.                };
  3105.             };
  3106.          };
  3107.          new GuiButtonCtrl() {
  3108.             profile = "GuiButtonProfile";
  3109.             horizSizing = "left";
  3110.             vertSizing = "bottom";
  3111.             position = "456 219";
  3112.             extent = "80 20";
  3113.             minExtent = "8 8";
  3114.             visible = "1";
  3115.             command = "Texture::applyMaterials();";
  3116.             helpTag = "0";
  3117.             text = "Apply";
  3118.             tooltipprofile = "GuiToolTipProfile";
  3119.             tooltip = "Don't forget to hit Apply after making changes!";
  3120.             groupNum = "-1";
  3121.             buttonType = "PushButton";
  3122.          };
  3123.       };
  3124.       new GuiTextCtrl(TESelectionInfo) {
  3125.          profile = "EditorTextProfile";
  3126.          horizSizing = "right";
  3127.          vertSizing = "top";
  3128.          position = "254 430";
  3129.          extent = "159 18";
  3130.          minExtent = "8 8";
  3131.          visible = "1";
  3132.          helpTag = "0";
  3133.          maxLength = "255";
  3134.       };
  3135.       new GuiTextCtrl(TEMouseBrushInfo) {
  3136.          profile = "EditorTextProfile";
  3137.          horizSizing = "right";
  3138.          vertSizing = "top";
  3139.          position = "6 430";
  3140.          extent = "182 18";
  3141.          minExtent = "8 8";
  3142.          visible = "1";
  3143.          helpTag = "0";
  3144.          maxLength = "255";
  3145.       };
  3146.       new GuiTextCtrl(TESelectionInfo1) {
  3147.          profile = "EditorTextProfileWhite";
  3148.          horizSizing = "right";
  3149.          vertSizing = "top";
  3150.          position = "255 431";
  3151.          extent = "159 18";
  3152.          minExtent = "8 8";
  3153.          visible = "1";
  3154.          helpTag = "0";
  3155.          maxLength = "255";
  3156.       };
  3157.       new GuiTextCtrl(TEMouseBrushInfo1) {
  3158.          profile = "EditorTextProfileWhite";
  3159.          horizSizing = "right";
  3160.          vertSizing = "top";
  3161.          position = "7 431";
  3162.          extent = "182 18";
  3163.          minExtent = "8 8";
  3164.          visible = "1";
  3165.          helpTag = "0";
  3166.          maxLength = "255";
  3167.       };
  3168.       new GuiControl(EPainter) {
  3169.          profile = "EditorScrollProfile";
  3170.          horizSizing = "left";
  3171.          vertSizing = "bottom";
  3172.          position = "409 0";
  3173.          extent = "231 446";
  3174.          minExtent = "8 8";
  3175.          visible = "1";
  3176.          helpTag = "0";
  3177.  
  3178.          new GuiBitmapCtrl(ETerrainMaterialBitmap0) {
  3179.             profile = "GuiDefaultProfile";
  3180.             horizSizing = "right";
  3181.             vertSizing = "bottom";
  3182.             position = "9 24";
  3183.             extent = "96 96";
  3184.             minExtent = "8 8";
  3185.             visible = "1";
  3186.             helpTag = "0";
  3187.             bitmap = "~/data/terrains/grassland/grass";
  3188.             wrap = "1";
  3189.          };
  3190.          new GuiTextCtrl(ETerrainMaterialText0) {
  3191.             profile = "GuiTextProfile";
  3192.             horizSizing = "right";
  3193.             vertSizing = "bottom";
  3194.             position = "10 5";
  3195.             extent = "28 18";
  3196.             minExtent = "8 8";
  3197.             visible = "1";
  3198.             helpTag = "0";
  3199.             text = "grass";
  3200.             maxLength = "255";
  3201.          };
  3202.          new GuiButtonCtrl(ETerrainMaterialChange0) {
  3203.             profile = "GuiButtonProfile";
  3204.             horizSizing = "right";
  3205.             vertSizing = "bottom";
  3206.             position = "9 125";
  3207.             extent = "96 22";
  3208.             minExtent = "8 8";
  3209.             visible = "1";
  3210.             command = "ETerrainEditor.changeMaterial(0);";
  3211.             helpTag = "0";
  3212.             text = "Change...";
  3213.             groupNum = "-1";
  3214.             buttonType = "PushButton";
  3215.          };
  3216.          new GuiBorderButtonCtrl(ETerrainMaterialPaint0) {
  3217.             profile = "GuiBorderButtonProfile";
  3218.             horizSizing = "right";
  3219.             vertSizing = "bottom";
  3220.             position = "4 6";
  3221.             extent = "106 118";
  3222.             minExtent = "8 8";
  3223.             visible = "1";
  3224.             command = "ETerrainEditor.setPaintMaterial(0);";
  3225.             helpTag = "0";
  3226.             text = "Button";
  3227.             groupNum = "-1";
  3228.             buttonType = "RadioButton";
  3229.          };
  3230.          new GuiBitmapCtrl(ETerrainMaterialBitmap1) {
  3231.             profile = "GuiDefaultProfile";
  3232.             horizSizing = "right";
  3233.             vertSizing = "bottom";
  3234.             position = "9 170";
  3235.             extent = "96 96";
  3236.             minExtent = "8 8";
  3237.             visible = "1";
  3238.             helpTag = "0";
  3239.             bitmap = "~/data/terrains/grassland/grass";
  3240.             wrap = "1";
  3241.          };
  3242.          new GuiTextCtrl(ETerrainMaterialText1) {
  3243.             profile = "GuiTextProfile";
  3244.             horizSizing = "right";
  3245.             vertSizing = "bottom";
  3246.             position = "10 151";
  3247.             extent = "28 18";
  3248.             minExtent = "8 8";
  3249.             visible = "1";
  3250.             helpTag = "0";
  3251.             text = "grass";
  3252.             maxLength = "255";
  3253.          };
  3254.          new GuiButtonCtrl(ETerrainMaterialChange1) {
  3255.             profile = "GuiButtonProfile";
  3256.             horizSizing = "right";
  3257.             vertSizing = "bottom";
  3258.             position = "9 271";
  3259.             extent = "96 22";
  3260.             minExtent = "8 8";
  3261.             visible = "1";
  3262.             command = "ETerrainEditor.changeMaterial(1);";
  3263.             helpTag = "0";
  3264.             text = "Change...";
  3265.             groupNum = "-1";
  3266.             buttonType = "PushButton";
  3267.          };
  3268.          new GuiBorderButtonCtrl(ETerrainMaterialPaint1) {
  3269.             profile = "GuiBorderButtonProfile";
  3270.             horizSizing = "right";
  3271.             vertSizing = "bottom";
  3272.             position = "4 152";
  3273.             extent = "106 118";
  3274.             minExtent = "8 8";
  3275.             visible = "1";
  3276.             command = "ETerrainEditor.setPaintMaterial(1);";
  3277.             helpTag = "0";
  3278.             text = "Button";
  3279.             groupNum = "-1";
  3280.             buttonType = "RadioButton";
  3281.          };
  3282.          new GuiBitmapCtrl(ETerrainMaterialBitmap2) {
  3283.             profile = "GuiDefaultProfile";
  3284.             horizSizing = "right";
  3285.             vertSizing = "bottom";
  3286.             position = "9 312";
  3287.             extent = "96 96";
  3288.             minExtent = "8 8";
  3289.             visible = "1";
  3290.             helpTag = "0";
  3291.             bitmap = "~/data/terrains/grassland/grass";
  3292.             wrap = "1";
  3293.          };
  3294.          new GuiTextCtrl(ETerrainMaterialText2) {
  3295.             profile = "GuiTextProfile";
  3296.             horizSizing = "right";
  3297.             vertSizing = "bottom";
  3298.             position = "10 293";
  3299.             extent = "28 18";
  3300.             minExtent = "8 8";
  3301.             visible = "1";
  3302.             helpTag = "0";
  3303.             text = "grass";
  3304.             maxLength = "255";
  3305.          };
  3306.          new GuiButtonCtrl(ETerrainMaterialChange2) {
  3307.             profile = "GuiButtonProfile";
  3308.             horizSizing = "right";
  3309.             vertSizing = "bottom";
  3310.             position = "9 413";
  3311.             extent = "96 22";
  3312.             minExtent = "8 8";
  3313.             visible = "1";
  3314.             command = "ETerrainEditor.changeMaterial(2);";
  3315.             helpTag = "0";
  3316.             text = "Change...";
  3317.             groupNum = "-1";
  3318.             buttonType = "PushButton";
  3319.          };
  3320.          new GuiBorderButtonCtrl(ETerrainMaterialPaint2) {
  3321.             profile = "GuiBorderButtonProfile";
  3322.             horizSizing = "right";
  3323.             vertSizing = "bottom";
  3324.             position = "4 294";
  3325.             extent = "106 118";
  3326.             minExtent = "8 8";
  3327.             visible = "1";
  3328.             command = "ETerrainEditor.setPaintMaterial(2);";
  3329.             helpTag = "0";
  3330.             text = "Button";
  3331.             groupNum = "-1";
  3332.             buttonType = "RadioButton";
  3333.          };
  3334.          new GuiBitmapCtrl(ETerrainMaterialBitmap3) {
  3335.             profile = "GuiDefaultProfile";
  3336.             horizSizing = "right";
  3337.             vertSizing = "bottom";
  3338.             position = "122 24";
  3339.             extent = "96 96";
  3340.             minExtent = "8 8";
  3341.             visible = "1";
  3342.             helpTag = "0";
  3343.             bitmap = "~/data/terrains/grassland/grass";
  3344.             wrap = "1";
  3345.          };
  3346.          new GuiTextCtrl(ETerrainMaterialText3) {
  3347.             profile = "GuiTextProfile";
  3348.             horizSizing = "right";
  3349.             vertSizing = "bottom";
  3350.             position = "123 5";
  3351.             extent = "28 18";
  3352.             minExtent = "8 8";
  3353.             visible = "1";
  3354.             helpTag = "0";
  3355.             text = "grass";
  3356.             maxLength = "255";
  3357.          };
  3358.          new GuiButtonCtrl(ETerrainMaterialChange3) {
  3359.             profile = "GuiButtonProfile";
  3360.             horizSizing = "right";
  3361.             vertSizing = "bottom";
  3362.             position = "122 125";
  3363.             extent = "96 22";
  3364.             minExtent = "8 8";
  3365.             visible = "1";
  3366.             command = "ETerrainEditor.changeMaterial(3);";
  3367.             helpTag = "0";
  3368.             text = "Change...";
  3369.             groupNum = "-1";
  3370.             buttonType = "PushButton";
  3371.          };
  3372.          new GuiBorderButtonCtrl(ETerrainMaterialPaint3) {
  3373.             profile = "GuiBorderButtonProfile";
  3374.             horizSizing = "right";
  3375.             vertSizing = "bottom";
  3376.             position = "117 6";
  3377.             extent = "106 118";
  3378.             minExtent = "8 8";
  3379.             visible = "1";
  3380.             command = "ETerrainEditor.setPaintMaterial(3);";
  3381.             helpTag = "0";
  3382.             text = "Button";
  3383.             groupNum = "-1";
  3384.             buttonType = "RadioButton";
  3385.          };
  3386.          new GuiBitmapCtrl(ETerrainMaterialBitmap4) {
  3387.             profile = "GuiDefaultProfile";
  3388.             horizSizing = "right";
  3389.             vertSizing = "bottom";
  3390.             position = "122 170";
  3391.             extent = "96 96";
  3392.             minExtent = "8 8";
  3393.             visible = "1";
  3394.             helpTag = "0";
  3395.             bitmap = "~/data/terrains/grassland/grass";
  3396.             wrap = "1";
  3397.          };
  3398.          new GuiTextCtrl(ETerrainMaterialText4) {
  3399.             profile = "GuiTextProfile";
  3400.             horizSizing = "right";
  3401.             vertSizing = "bottom";
  3402.             position = "123 151";
  3403.             extent = "28 18";
  3404.             minExtent = "8 8";
  3405.             visible = "1";
  3406.             helpTag = "0";
  3407.             text = "grass";
  3408.             maxLength = "255";
  3409.          };
  3410.          new GuiButtonCtrl(ETerrainMaterialChange4) {
  3411.             profile = "GuiButtonProfile";
  3412.             horizSizing = "right";
  3413.             vertSizing = "bottom";
  3414.             position = "122 271";
  3415.             extent = "96 22";
  3416.             minExtent = "8 8";
  3417.             visible = "1";
  3418.             command = "ETerrainEditor.changeMaterial(4);";
  3419.             helpTag = "0";
  3420.             text = "Change...";
  3421.             groupNum = "-1";
  3422.             buttonType = "PushButton";
  3423.          };
  3424.          new GuiBorderButtonCtrl(ETerrainMaterialPaint4) {
  3425.             profile = "GuiBorderButtonProfile";
  3426.             horizSizing = "right";
  3427.             vertSizing = "bottom";
  3428.             position = "117 152";
  3429.             extent = "106 118";
  3430.             minExtent = "8 8";
  3431.             visible = "1";
  3432.             command = "ETerrainEditor.setPaintMaterial(4);";
  3433.             helpTag = "0";
  3434.             text = "Button";
  3435.             groupNum = "-1";
  3436.             buttonType = "RadioButton";
  3437.          };
  3438.          new GuiBitmapCtrl(ETerrainMaterialBitmap5) {
  3439.             profile = "GuiDefaultProfile";
  3440.             horizSizing = "right";
  3441.             vertSizing = "bottom";
  3442.             position = "122 311";
  3443.             extent = "96 96";
  3444.             minExtent = "8 8";
  3445.             visible = "1";
  3446.             helpTag = "0";
  3447.             bitmap = "~/data/terrains/grassland/grass";
  3448.             wrap = "1";
  3449.          };
  3450.          new GuiTextCtrl(ETerrainMaterialText5) {
  3451.             profile = "GuiTextProfile";
  3452.             horizSizing = "right";
  3453.             vertSizing = "bottom";
  3454.             position = "123 292";
  3455.             extent = "28 18";
  3456.             minExtent = "8 8";
  3457.             visible = "1";
  3458.             helpTag = "0";
  3459.             text = "grass";
  3460.             maxLength = "255";
  3461.          };
  3462.          new GuiButtonCtrl(ETerrainMaterialChange5) {
  3463.             profile = "GuiButtonProfile";
  3464.             horizSizing = "right";
  3465.             vertSizing = "bottom";
  3466.             position = "122 412";
  3467.             extent = "96 22";
  3468.             minExtent = "8 8";
  3469.             visible = "1";
  3470.             command = "ETerrainEditor.changeMaterial(5);";
  3471.             helpTag = "0";
  3472.             text = "Change...";
  3473.             groupNum = "-1";
  3474.             buttonType = "PushButton";
  3475.          };
  3476.          new GuiBorderButtonCtrl(ETerrainMaterialPaint5) {
  3477.             profile = "GuiBorderButtonProfile";
  3478.             horizSizing = "right";
  3479.             vertSizing = "bottom";
  3480.             position = "117 293";
  3481.             extent = "106 118";
  3482.             minExtent = "8 8";
  3483.             visible = "1";
  3484.             command = "ETerrainEditor.setPaintMaterial(5);";
  3485.             helpTag = "0";
  3486.             text = "Button";
  3487.             groupNum = "-1";
  3488.             buttonType = "RadioButton";
  3489.          };
  3490.       };
  3491.    };
  3492.    new GuiMenuBar(EditorMenuBar) {
  3493.       profile = "GuiMenuBarProfile";
  3494.       horizSizing = "width";
  3495.       vertSizing = "bottom";
  3496.       position = "0 0";
  3497.       extent = "640 22";
  3498.       minExtent = "8 8";
  3499.       visible = "1";
  3500.       helpTag = "0";
  3501.    };
  3502.    new GuiControl(RelightMessage) {
  3503.       profile = "GuiSolidDefaultProfile";
  3504.       horizSizing = "width";
  3505.       vertSizing = "top";
  3506.       position = "19 450";
  3507.       extent = "423 23";
  3508.       minExtent = "8 2";
  3509.       visible = "0";
  3510.  
  3511.       new GuiTextCtrl() {
  3512.          profile = "GuiCenterTextProfile";
  3513.          horizSizing = "width";
  3514.          vertSizing = "bottom";
  3515.          position = "5 1";
  3516.          extent = "289 18";
  3517.          minExtent = "8 2";
  3518.          visible = "1";
  3519.          text = "A lightmapped object has been altered; relight the scene!";
  3520.          maxLength = "255";
  3521.       };
  3522.       new GuiButtonCtrl() {
  3523.          profile = "GuiButtonProfile";
  3524.          horizSizing = "left";
  3525.          vertSizing = "bottom";
  3526.          position = "308 2";
  3527.          extent = "75 18";
  3528.          minExtent = "8 2";
  3529.          visible = "1";
  3530.          command = "lightScene(\"\", forceAlways); RelightMessage.visible = false;";
  3531.          text = "Relight Scene";
  3532.          groupNum = "-1";
  3533.          buttonType = "PushButton";
  3534.       };
  3535.       new GuiButtonCtrl() {
  3536.          profile = "GuiButtonProfile";
  3537.          horizSizing = "left";
  3538.          vertSizing = "bottom";
  3539.          position = "388 2";
  3540.          extent = "32 18";
  3541.          minExtent = "8 2";
  3542.          visible = "1";
  3543.          command = "RelightMessage.visible = false;";
  3544.          text = "Hide";
  3545.          groupNum = "-1";
  3546.          buttonType = "PushButton";
  3547.       };
  3548.    };
  3549.    
  3550. };
  3551. //--- OBJECT WRITE END ---
  3552.  
  3553.